{"id":"MAL-2026-10684","revision":"6827bd08964042e085ca00fb2fd54070","records":[{"revision":"6827bd08964042e085ca00fb2fd54070","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10684","aliases":[],"title":"Malicious code in react-hook-scripts (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (52d4b717c5de5139b732e16ea9eca2654947ecf17e919334a6dd039c5b60e059)\nThe package's default export `getPlugin` fetches a JSON document from the hardcoded endpoint https://svganchordev.net/icons/108 and passes the returned `credits` field to `new Function('require','module','exports',...,'Promise', data.credits)`, executing the server-supplied string as JavaScript with full Node.js globals (require, process, Buffer) available. The remote URL is assembled by concatenating protocol/separator/domain/path fragments and the request is framed with an `bearrtoken: \"logo\"` header and an icon-retrieval path, disguising a remote code loader as an SVG helper despite the package's advertised role as a React/SVG utility. Declared dependencies (@primno/dpapi for Windows DPAPI decryption, better-sqlite3, node-machine-id) are consistent with a credential and host-fingerprint stealer stage delivered by the fetched payload. Any caller of the advertised API triggers execution of arbitrary attacker-controlled code on the installer's host, and the payload can be changed server-side at any time.\n","state":0,"publishedAt":"2026-07-15T15:45:21+00:00","modifiedAt":"2026-07-15T16:49:27.6696293+00:00","affected":[{"ecosystem":"npm","name":"react-hook-scripts","ranges":[],"versions":["5.4.2"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/react-hook-scripts/v/5.4.2"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10684","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10684","identifiers":["MAL-2026-10684"]},"retained":false,"historicalAffected":[]}],"coverage":[]}