img-to-native (npm) · Malicious Code
Affects img-to-nativeSource GCVE Database
Malicious package : remove img-to-native and rotate any secrets on hosts that installed it.
Data as of 29 Sep 2026, 04:46 UTC
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
| Product | Affected | Fixed in |
|---|---|---|
| npmimg-to-native | Affected
| 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
- github.com/advisories/GHSA-pv7p-ghgv-268x (opens in a new tab)
- npmjs.com/package/img-to-native/v/1.0.0 (opens in a new tab)
- npmjs.com/package/img-to-native/v/1.0.1 (opens in a new tab)
- npmjs.com/package/img-to-native/v/1.0.3 (opens in a new tab)
- npmjs.com/package/img-to-native/v/1.0.2 (opens in a new tab)