Skip to main content
MalwarePublished Updated

file-type-detector (npm) · Malicious Code

Affects file-type-detectorSource GCVE Database

0

Malicious package : remove file-type-detector and rotate any secrets on hosts that installed it.

Data as of 11 Nov 2026, 17:36 UTC

Classification

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

ProductAffectedFixed in
npmfile-type-detectorAffected
  • =1.1.0
  • =1.1.1
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.

References

Community reviews

Loading reviews…