Skip to main content
MalwarePublished Updated

test-pkg-x0 (npm) · Malicious Code

Affects test-pkg-x0Source GCVE Database

0

Malicious package : remove test-pkg-x0 and rotate any secrets on hosts that installed it.

Data as of 20 Aug 2026, 14:36 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-6717

What to do

Remove test-pkg-x0 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
npmtest-pkg-x0Affected
  • 1.0.0 – 1.0.4
5 affected builds
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 'test-pkg-x0' contains malicious code that executes arbitrary commands on the installer's machine during installation. It uses a postinstall script 'shim.js' that runs unconditionally and executes OS-native commands, including launching applications and opening URLs. The package also hijacks the 'node' command for sibling dependencies, enabling further arbitrary code execution during dependency installation. This behavior fully compromises any system installing the package, risking exposure of all stored secrets and keys.

References

Community reviews

Loading reviews…