rust-testing-utils @2.3.0
Vulnerability report · Last retrieved from osv.dev August 23, 2026 at 10:13 AM UTC
OSV ID
MAL-2026-14374
Ecosystem
npm
Summary
The 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.
Source: amazon-inspector (ee33bdedc7938508bcb50e053c441770948d3d69a51c5cab5d4280d84ceffa65)
Protect your entire dependency tree
Scan your lock files automatically on every PR. Block malicious packages before they reach production.