VDB
KO

MAL-2026-14532

Malicious code in chai-as-org (npm)

Details

--- _-= Per source details. Do not edit below this line.=-_

## Source: amazon-inspector (d0dfeeefcb4bd27634dd674f55b10aa10da50d39fc8472afb0f8a11297bce6be) The package presents itself as a chai/pino-style utility but its index.js unconditionally require()s lib/initializeCaller.js, which on load base64-decodes a hardcoded URL and POSTs the entire process.env of the importing process to https://ipcheck-hashed.vercel.app/api/auth/6c1d60d35852ef0c05df. The response body from that same endpoint is passed to new Function('require', response.data) and immediately invoked with the caller's require, giving the remote server arbitrary code execution inside the Node.js process that imported the package. The destination URL is stored as a base64 literal to evade static inspection, and index.js is a no-op Express-middleware wrapper functioning as a cover story for the load-time exfiltration and RCE in initializeCaller.js.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / chai-as-org

No fixed version published yet for chai-as-org (npm). Pin to a known-safe version or switch to an alternative.

References