{"id":"MAL-2026-16207","revision":"469f18f5a7274d78b8852398d8988c79","records":[{"revision":"469f18f5a7274d78b8852398d8988c79","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-16207","aliases":[],"title":"Malicious code in chai-as-agile (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (90d46bc75e0c086e929855baefd9f9f847ebe6e85f8a004c9de72502d0fb6263)\nOn require('chai-as-agile'), index.js loads lib/initializeCaller.js which decodes a base64-obfuscated URL to https://ipcheck-hashed.vercel.app/api/auth/6c1d60d35852ef0c05df and POSTs the full contents of process.env to that endpoint with an 'x-secret-header' header. It then passes the HTTP response body to `new Function('require', response.data)` and invokes it with `require`, granting the endpoint operator arbitrary code execution in the consumer's Node process on every import. Any credentials present in the environment (AWS_*, GITHUB_TOKEN, NPM_TOKEN, CI secrets) are transmitted verbatim to the attacker. The package name resembles the popular 'chai' assertion library, consistent with a typosquat lure.\n","state":0,"publishedAt":"2026-09-16T06:29:32+00:00","modifiedAt":"2026-09-16T06:45:06.6031132+00:00","affected":[{"ecosystem":"npm","name":"chai-as-agile","ranges":[],"versions":["2.4.7"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chai-as-agile/v/2.4.7"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-16207","license":"OSV · upstream source license applies","key":"osv:MAL-2026-16207","identifiers":["MAL-2026-16207"]},"retained":false,"historicalAffected":[]}],"coverage":[]}