MAL-2026-10684 Malicious code in react-hook-scripts (npm)
Malicious package
Published
MAL-2026-10684 is a malicious package: react-hook-scripts (npm). Every version was published to cause harm.
Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.
Reference: https://insights.sbomify.com/MAL-2026-10684/ (Markdown: https://insights.sbomify.com/MAL-2026-10684/index.md)
- Package
- react-hook-scripts
- Registry
- npm
What is MAL-2026-10684?
MAL-2026-10684 is a malicious package in react-hook-scripts, published on 15 Jul 2026.
Official description
The 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.What should I do about MAL-2026-10684?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.