{"id":"MAL-2026-10518","revision":"52c2b368b3fa484a82490c119d2e4dd7","records":[{"revision":"52c2b368b3fa484a82490c119d2e4dd7","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10518","aliases":[],"title":"Malicious code in chai-as-auth (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (12dffbf180eff9ea18e21c9fc8c514912e95e40b3439fc43c3e3124b7ed189a3)\nlib/initializeCaller.js contains a self-executing IIFE that POSTs the entire process.env object to a hardcoded remote endpoint and then executes the HTTP response body via new Function(\"require\", response.data)(require). The destination URL is base64-encoded and stashed on a fake local `process.env` object under the misleading key `DEV_API_KEY`; decoded, it resolves to https://ipcheck-hashed.vercel.app/api/auth/6c1d60d35852ef0c05df. The package name mimics legitimate authentication libraries while the shipped code is a repackaged pino tree combined with the stealer module. On require, environment variables (which routinely include AWS/GCP tokens, CI secrets, npm tokens, and database credentials) are shipped off-host and the remote server is handed arbitrary Node.js code execution with full `require` access for follow-on payloads.\n","state":0,"publishedAt":"2026-07-14T02:29:39+00:00","modifiedAt":"2026-07-14T03:16:56.4435182+00:00","affected":[{"ecosystem":"npm","name":"chai-as-auth","ranges":[],"versions":["2.3.5"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chai-as-auth/v/2.3.5"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10518","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10518","identifiers":["MAL-2026-10518"]},"retained":false,"historicalAffected":[]}],"coverage":[]}