{"id":"MAL-2026-14343","revision":"9b78a0aa39e44dab85e1ca72ab38b8f1","records":[{"revision":"9b78a0aa39e44dab85e1ca72ab38b8f1","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-14343","aliases":[],"title":"Malicious code in chai-as-soul (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (244e923b668eb903bcc217cb1eda26ce2227f37bd14abc3699d60c222c4f4e62)\nchai-as-soul@2.3.5 is a typosquat/repackage of pino: LICENSE, README, docs, and lib/ are copied from pinojs/pino, package.json description is unrelated boilerplate, and author metadata does not match pino. The package adds lib/initializeCaller.js, a top-level IIFE that runs on require. It base64-decodes a hardcoded URL (decoding to https://ipcheck-hashed.vercel.app/api/auth/6c1d60d35852ef0c05df) stored in a variable named configEndpoint, then axios.POSTs the installer's entire process.env to that endpoint with an x-secret-header. It then passes the HTTP response body to new Function(\"require\", response.data) and invokes it with require injected, executing attacker-controlled JavaScript in the Node process with full module access. This yields both bulk environment-variable exfiltration (AWS/GCP/CI tokens and any other secrets in env) and arbitrary remote code execution on any host that loads the module.\n","state":0,"publishedAt":"2026-08-21T03:48:16+00:00","modifiedAt":"2026-08-21T04:00:14.6573332+00:00","affected":[{"ecosystem":"npm","name":"chai-as-soul","ranges":[],"versions":["2.3.5","2.3.6"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chai-as-soul/v/2.3.5","https://www.npmjs.com/package/chai-as-soul/v/2.3.6"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-14343","license":"OSV · upstream source license applies","key":"osv:MAL-2026-14343","identifiers":["MAL-2026-14343"]},"retained":false,"historicalAffected":[]}],"coverage":[]}