Skip to main content
MalwarePublished Updated

scan-only (npm) · Malicious Code

Affects scan-onlySource GCVE Database

0

Malicious package : remove scan-only and rotate any secrets on hosts that installed it.

Data as of 26 Oct 2026, 15:57 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-6067

What to do

Remove scan-only 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
npmscan-onlyAffected
  • 0.2.0 – 1.0.0
15 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 'scan-only' contains malicious code in its CLI binary 'bin/scan-only.js' that, when executed, exfiltrates sensitive installer-side secrets including credentials and configuration files to a hardcoded attacker server. It then fetches and executes attacker-controlled shell commands, enabling arbitrary code execution on the host. The package disguises itself as a diagnostic tool and uses brand impersonation to evade detection. Any system running this package should be considered fully compromised.

References

Community reviews

Loading reviews…