Skip to main content
MalwarePublished

cursed-modules (npm) · Malicious Code

Affects cursed-modulesSource GCVE Database

0

Malicious package : remove cursed-modules and rotate any secrets on hosts that installed it.

Data as of 26 Oct 2026, 15:55 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-6698

What to do

Remove cursed-modules 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
npmcursed-modulesAffected
  • 1.0.1 – 999.1.2
19 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 'cursed-modules' npm package versions 2.0.0 and 999.0.0 through 999.0.3 contain malicious code designed to steal credentials and sensitive environment data. The package uses lifecycle hooks to execute install-time scripts that collect SSH keys, npm configuration, git history, environment variables, and AWS credentials, exfiltrating them to attacker-controlled endpoints. The malicious payload activates only inside containerized CI/CD environments, evading detection on typical developer machines. This is a dependency confusion attack targeting internal package names to harvest private registry credentials and enable further attacks.

References

Community reviews

Loading reviews…