{"id":"MAL-2026-10043","revision":"764b1ef4130b4a9e8c28317bcc2b560d","records":[{"revision":"764b1ef4130b4a9e8c28317bcc2b560d","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10043","aliases":["GHSA-mq6v-3fqr-9cp6"],"title":"Malicious code in chai-as-modified (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ab841cd3ab01bfcd1257a214489b41f10e236779e236a0672642777160245a9e)\nPackage name is a 1-2 character variant of the widely-used `chai-as-promised` plugin. The exported function — the entry point users pass to `chai.use(...)` per the copied pino README — invokes a `runBackgroundTask` helper that spawns a detached `node` subprocess (`detached: true`, `stdio: 'ignore'`, `child.unref()`) running a sibling `./lib/initializeCaller.js`, then returns a no-op pass-through middleware. The detached, unref'd child is decoupled from the parent test runner and outlives it — an out-of-band execution channel that has no relationship to the advertised purpose of a chai assertion plugin. The `lib/` directory ships a verbatim copy of unrelated pino source as decoy content, and the README is copied from pinojs/pino. In this specific tarball the referenced `./lib/initializeCaller.js` file is not present, so the fork currently errors out, but the launcher stub, name-confusion vector, decoy content, and covert-execution mechanism are all in place; the missing payload is consistent with a staged release or intended delivery via a sibling/subsequent publish.\n","state":0,"publishedAt":"2026-07-09T15:34:58+00:00","modifiedAt":"2026-09-01T11:31:00.8605183+00:00","affected":[{"ecosystem":"npm","name":"chai-as-modified","ranges":[],"versions":["6.0.4"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chai-as-modified/v/6.0.4","https://github.com/advisories/GHSA-mq6v-3fqr-9cp6"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10043","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10043","identifiers":["MAL-2026-10043","GHSA-mq6v-3fqr-9cp6"]},"retained":false,"historicalAffected":[]}],"coverage":[]}