Skip to main content
MalwarePublished Updated

gatsby-plugin-cname (npm) · Malicious Code

Affects gatsby-plugin-cnameSource GCVE Database

0

Malicious package : remove gatsby-plugin-cname and rotate any secrets on hosts that installed it.

Data as of 20 Nov 2026, 01:25 UTC

Classification

Malicious package

Published to npm · OSV MAL-2025-191100

What to do

Remove gatsby-plugin-cname 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
npmgatsby-plugin-cnameAffected
  • =1.0.2
  • =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 gatsby-plugin-cname versions 1.0.1 and 1.0.2 were found to contain malicious code as part of the Sha1-Hulud: The Second Coming NPM worm. This malware steals tokens and credentials, publishes them to GitHub, propagates itself to other NPM packages owned by the user, and establishes persistence via GitHub actions. It may also destroy the user's home directory. Systems with this package installed should be considered fully compromised.

References

Community reviews

Loading reviews…