{"id":"MAL-2026-14374","revision":"865f3d922d824e74a6a6b8e2ea0632a7","records":[{"revision":"865f3d922d824e74a6a6b8e2ea0632a7","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-14374","aliases":[],"title":"Malicious code in rust-testing-utils (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ee33bdedc7938508bcb50e053c441770948d3d69a51c5cab5d4280d84ceffa65)\nThe package impersonates the pino logger in its README, keywords, and API surface. index.js exports middleware that spawns lib/caller.js as a detached child process on invocation. caller.js reconstructs a hardcoded URL by base64-decoding a value stored under a fake `process.env.DEV_API_KEY` inside a fabricated `process` object, resolving to https://api.jsonstorage.net/v1/json/2ef8c758-a96f-459e-b036-b3b90379a165/f89e8264-86c2-4684-94da-c3f82d59370f. It fetches this URL with axios and passes the returned `cookie` field to `new Function.constructor(\"require\", s)`, then invokes the resulting function with `require` as an argument, giving the remotely fetched code arbitrary execution with full module-loading capability in the consumer's process. The endpoint content is attacker-controlled and mutable, so the executed payload can change at any time without a package update. The base64-encoded URL, fabricated env-var names used to hide the destination, and pino-lookalike cover story are consistent with an intentional supply-chain attack rather than legitimate functionality.\n","state":0,"publishedAt":"2026-08-23T03:14:27+00:00","modifiedAt":"2026-08-23T03:30:23.958056+00:00","affected":[{"ecosystem":"npm","name":"rust-testing-utils","ranges":[],"versions":["2.3.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/rust-testing-utils/v/2.3.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-14374","license":"OSV · upstream source license applies","key":"osv:MAL-2026-14374","identifiers":["MAL-2026-14374"]},"retained":false,"historicalAffected":[]}],"coverage":[]}