Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in typscript-cli (npm)

0
High
Published: 08/18/2026 (08/18/2026, 23:21:27 UTC)
Source: GCVE Database
Product: typscript-cli

Description

The typscript-cli npm package is a typosquatting malicious package impersonating the legitimate 'typescript' package. Its postinstall script executes automatically on installation, decoding and downloading a Windows executable payload that runs silently. It also sends platform information to a hardcoded IP address over unencrypted HTTP. There is no integrity verification or version pinning for the downloaded binary, increasing risk. The package affects version 1.0.0.

Affected software

npmghsa
typscript-cli
Affected versions
=1.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/19/2026, 14:54:35 UTC

Technical Analysis

The typscript-cli package is a typosquat of the legitimate 'typescript' npm package. Its only functional code is in scripts/postinstall.js, which runs on npm install. This script XOR-decodes four embedded numeric arrays using the key 'stf2026' to reconstruct a download URL and a PowerShell command. It downloads a Windows executable to the user's %TEMP% directory and executes it detached and hidden. On WSL/Linux hosts, it uses a PowerShell bridge command to run the payload on the Windows side. Additionally, the script sends a platform label via an HTTP POST request to a hardcoded IP address (193.70.34.101:20099/vote), with the IP assembled dynamically to evade detection. There is no publisher verification, version pinning, or integrity check on the downloaded payload, making this a supply chain malware threat. The affected version is 1.0.0.

Potential Impact

This malicious package can execute arbitrary Windows executables on the victim's machine during npm install, potentially leading to full system compromise or persistence. The payload is downloaded and executed without integrity checks, increasing risk of undetected malware infection. The exfiltration of platform information to a remote server indicates potential for further targeted attacks or data collection. The threat affects users who mistakenly install this typosquatted package instead of the legitimate 'typescript' package.

Mitigation Recommendations

Users should avoid installing the typscript-cli package and verify package names carefully to prevent typosquatting attacks. Since no official fix or patch is available, the best mitigation is to remove any installations of typscript-cli version 1.0.0 and scan affected systems for the downloaded payload. Use trusted package sources and enable npm package integrity checks where possible. Monitor for suspicious network activity to the IP 193.70.34.101 and block it if detected.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-14156
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a85b4cbacd9273b49252ec6

Added to database: 08/19/2026, 13:51:07 UTC

Last enriched: 08/19/2026, 14:54:35 UTC

Last updated: 08/19/2026, 14:54:35 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses