tms-x-headers (npm) · Malicious Code
Affects tms-x-headersSource GCVE Database
Malicious package : remove tms-x-headers and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 16:15 UTC
Malicious package
Published to npm · OSV MAL-2026-12480
What to do
Remove tms-x-headers 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 |
|---|---|---|
| npmtms-x-headers | 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 tms-x-headers version 20.2.9 contains malicious code that, upon requiring the package, fetches a platform-specific binary from attacker-controlled hosts. This binary is saved to a temporary file with a name mimicking legitimate .NET diagnostic tools, made executable, and then executed without any signature verification. The code uses obfuscation techniques to evade detection, including fragmented hostnames and split strings for requiring modules. Installing or loading this package results in execution of attacker-controlled native code on the host system.