@toprimitive/nif (npm) · Malicious Code
Affects @toprimitive/nifSource GCVE Database
Malicious package : remove @toprimitive/nif and rotate any secrets on hosts that installed it.
Data as of 8 Sep 2026, 06:39 UTC
Malicious package
Published to npm · OSV MAL-2026-7096
What to do
Remove @toprimitive/nif from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
npm@toprimitive/nifpkg:npm/%40toprimitive/nifOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The npm package @toprimitive/nif version 99.9.9 contains malicious code. This is identified as a malicious package threat rather than a traditional software vulnerability. There is no CVSS score or detailed technical description available. No patch or remediation information is provided, and no known exploits in the wild have been reported.