Skip to main content
MalwarePublished

add-two-numbers-x7q9m (npm) · Malicious Code

Affects add-two-numbers-x7q9mSource GCVE Database

0

Malicious package : remove add-two-numbers-x7q9m and rotate any secrets on hosts that installed it.

Data as of 5 Aug 2026, 15:41 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-12032

What to do

Remove add-two-numbers-x7q9m 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
npmadd-two-numbers-x7q9mAffected
  • =1.0.0
  • =1.0.1
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 'add-two-numbers-x7q9m' versions 1.0.0 and 1.0.1 contains malicious code that executes during installation. Its preinstall script enumerates the installer's Desktop directory, extracts npm authentication tokens from .txt files using a regex, and sends these tokens to a hardcoded external endpoint. This behavior is unrelated to the package's advertised functionality and enables attackers to hijack npm registry accounts and propagate supply-chain attacks.

References

Community reviews

Loading reviews…