Skip to main content
MalwarePublished

img-to-native (npm) · Malicious Code

Affects img-to-nativeSource GCVE Database

0

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

Data as of 29 Sep 2026, 04:46 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-17216

What to do

Remove img-to-native 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
npmimg-to-nativeAffected
  • 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 img-to-native contains malicious code that decrypts and writes a Windows executable to the local filesystem with execute permissions. This executable is hidden as an encrypted payload appended to an image file in a dependency, and the package installs attacker-controlled code without verification. Installing or loading this package can lead to full system compromise. The package versions 1.0.0, 1.0.1, 1.0.2, and 1.0.3 are affected.

References

Community reviews

Loading reviews…