veteran (npm) · Malicious Code
Affects veteranSource GCVE Database
Malicious package : remove veteran and rotate any secrets on hosts that installed it.
Data as of 1 Dec 2026, 15:33 UTC
Malicious package
Published to npm · OSV MAL-2026-4703
What to do
Remove veteran 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 |
|---|---|---|
| npmveteran | 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 'veteran' contains malicious code that executes during installation. Its postinstall script downloads and runs a platform-specific executable from an unverified external URL controlled by a third party, allowing arbitrary native code execution on the installing system. This compromises the affected computer, potentially exposing all stored secrets and keys.