Skip to main content
MalwarePublished Updated

imgdecode (npm) · Malicious Code

Affects imgdecodeSource GCVE Database

0

Malicious package : remove imgdecode and rotate any secrets on hosts that installed it.

Data as of 29 Oct 2026, 14:18 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-18196

What to do

Remove imgdecode 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
npmimgdecodeAffected
  • 1.0.0 – 1.0.3
4 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 'imgdecode' versions 1.0.0 through 1.0.3 contains malicious code disguised as a native image buffer decoder. It includes a packed and obfuscated Windows PE binary that executes native code immediately upon module load on Windows x64 hosts. The package's JavaScript interface does not match its advertised API, indicating it is a facade for delivering malicious payloads. Any system with this package installed should be considered fully compromised, and all secrets and keys on that system should be rotated from a separate, clean device.

References

Community reviews

Loading reviews…