{"id":"MAL-2026-10056","revision":"a6bca525586d43b7b177013bba868657","records":[{"revision":"a6bca525586d43b7b177013bba868657","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10056","aliases":["GHSA-v7w8-4wfr-cvwf"],"title":"Malicious code in chain-chai-await (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (53dc585524bcc3e64a107006ba8c763591b071bb174c7acadd716b6e99ac1c34)\nThe package presents itself as a pino-compatible logger (exports `pino`, mirrors pino's lib/ layout with proto.js/redaction.js/transport.js/multistream.js/levels.js/time.js/symbols.js, and copies pino's defaultOptions shape) but has no relationship to the real pino package. When a consumer requires the package and invokes the exported middleware factory, index.js spawns lib/caller.js as a detached Node subprocess. caller.js performs an axios GET to https://jsonkeeper.com/b/K80JD, reads the `cookie` field from the JSON response, and executes it via `new Function.constructor(\"require\", s)(require)` — arbitrary remote code execution in the consumer's Node process with full access to `require`. The fetch is retried up to 5 times. lib/const.js additionally stores a base64-encoded backup endpoint (aHR0cHM6Ly9qc29ua2VlcGVyLmNvbS9iL1pLNDVK → https://jsonkeeper.com/b/ZK45J) and base64-encoded header key/value (`x-secret-key`, `_`) used by the loader. The pino cover story, mirrored file layout, obfuscated backup URL, and remote-fetch-and-execute primitive against a public paste-like host are the fingerprint of a dropper disguised as a logging library.\n","state":0,"publishedAt":"2026-07-09T15:32:40+00:00","modifiedAt":"2026-09-01T11:31:30.4253046+00:00","affected":[{"ecosystem":"npm","name":"chain-chai-await","ranges":[],"versions":["1.3.6","1.3.7","1.3.5"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chain-chai-await/v/1.3.6","https://www.npmjs.com/package/chain-chai-await/v/1.3.7","https://www.npmjs.com/package/chain-chai-await/v/1.3.5","https://github.com/advisories/GHSA-v7w8-4wfr-cvwf"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10056","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10056","identifiers":["MAL-2026-10056","GHSA-v7w8-4wfr-cvwf"]},"retained":false,"historicalAffected":[]}],"coverage":[]}