{"id":"MAL-2026-10211","revision":"ab66c9ce1b5e41fd9178226403505dc8","records":[{"revision":"ab66c9ce1b5e41fd9178226403505dc8","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10211","aliases":[],"title":"Malicious code in react-next-vite (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (286869faf09aec1d62b472e43a7188a1583c5cf8c999d1fb2e116f0b7f5ba8c6)\nThe package impersonates the pino logger (README/badges reference pino; module.exports.pino is the middleware) while its name is react-next-vite. When a consumer invokes the exported middleware factory in index.js, it spawns 'node lib/caller.js' as a detached child with stdio:'ignore' and calls child.unref(), hiding output from the parent process. lib/caller.js retrieves a JavaScript payload from a mutable IPFS gateway URL (bronze-improved-gibbon-411.mypinata.cloud/ipfs/bafkrei...) via axios.get and passes the response body to Function.constructor, invoking the resulting function with require in scope — giving the retrieved code full access to the host's Node runtime. Additional endpoints are hidden as base64-encoded strings in a fake process.env-shaped object in lib/caller.js and lib/const.js (e.g., DEV_API_KEY decodes to https://jsonkeeper.com/b/XRGF3), acting as a second-stage config channel. The combination of identity impersonation, stealth-spawned detached child, opaque remote-fetch-and-eval with require, and base64-hidden config URLs is a fully weaponized dropper that runs on any consumer that uses the module's default export.\n","state":0,"publishedAt":"2026-07-12T20:48:42+00:00","modifiedAt":"2026-07-16T08:49:13.5836134+00:00","affected":[{"ecosystem":"npm","name":"react-next-vite","ranges":[],"versions":["1.2.9"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/react-next-vite/v/1.2.9","https://firewall.lpm.dev/npm/react-next-vite/v/1.2.9"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10211","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10211","identifiers":["MAL-2026-10211"]},"retained":false,"historicalAffected":[]}],"coverage":[]}