Skip to main content
MalwarePublished Updated

veteran (npm) · Malicious Code

Affects veteranSource GCVE Database

0

Malicious package : remove veteran and rotate any secrets on hosts that installed it.

Data as of 1 Dec 2026, 15:33 UTC

Classification

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

ProductAffectedFixed in
npmveteranAffected
  • =1.0.5
  • =1.0.3
  • =1.0.11
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.

References

Community reviews

Loading reviews…