Skip to main content
MalwarePublished

tyepescript-cli (npm) · Malicious Code

Affects tyepescript-cliSource GCVE Database

0

Malicious package : remove tyepescript-cli and rotate any secrets on hosts that installed it.

Data as of 19 Aug 2026, 14:57 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-14143

What to do

Remove tyepescript-cli 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
npmtyepescript-cliAffected
  • =1.0.0
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 'tyepescript-cli' is a typosquatting malicious package impersonating the legitimate 'typescript' package. Its postinstall script uses XOR obfuscation to decode attacker-controlled URLs and commands. On Windows, it downloads and executes a malicious binary from a suspicious GitHub account. Under Windows Subsystem for Linux (WSL), it uses a PowerShell bridge to execute the same payload on the Windows host. The script also sends an install-time beacon to a hardcoded IP address. This behavior indicates an active attempt to compromise systems during package installation.

References

Community reviews

Loading reviews…