file-type-detector (npm) · Malicious Code
Affects file-type-detectorSource GCVE Database
Malicious package : remove file-type-detector and rotate any secrets on hosts that installed it.
Data as of 11 Nov 2026, 17:36 UTC
Malicious package
Published to npm · OSV MAL-2026-16053
What to do
Remove file-type-detector 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 |
|---|---|---|
| npmfile-type-detector | 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 file-type-detector versions 1.1.0 and 1.1.1 contain malicious code that writes a payload to a sibling package's log file and enables execution of that payload through a chain of dependencies. This results in full compromise of any computer running or having installed these versions. Immediate removal and secret/key rotation are strongly advised.