Skip to main content
MalwarePublished Updated

cdn-img-fetch (npm) · Malicious Code

Affects cdn-img-fetchSource GCVE Database

0

Malicious package : remove cdn-img-fetch and rotate any secrets on hosts that installed it.

Data as of 26 Oct 2026, 16:23 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-17320

What to do

Remove cdn-img-fetch 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
npmcdn-img-fetchAffected
  • =1.0.0
  • =1.0.1
  • =1.0.3
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 cdn-img-fetch versions 1.0.0 and 1.0.1 unconditionally downloads a file from a mutable third-party GitHub repository at module load time and writes it to a hidden temporary file on the installer's system. This behavior occurs automatically upon import without user interaction and does not verify the source content's integrity. The package's advertised functionality does not justify this import-time network fetch and hidden file write, indicating malicious intent as a first-stage dropper mechanism.

References

Community reviews

Loading reviews…