trimprompt (npm) · Malicious Code
Affects trimpromptSource GCVE Database
Malicious package : remove trimprompt and rotate any secrets on hosts that installed it.
Data as of 7 Aug 2026, 07:42 UTC
Malicious package
Published to npm · OSV MAL-2026-13462
What to do
Remove trimprompt 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 |
|---|---|---|
| npmtrimprompt | 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 trimprompt versions 1.0.35, 1.0.42, 1.0.46, 1.0.47, 1.0.48, and 1.0.49 contains heavily obfuscated JavaScript modules that execute malicious behavior. These modules include scripts that spawn PowerShell processes during installation and runtime on Windows hosts, and perform HTTP POST requests sending host identifiers to remote endpoints. This behavior is inconsistent with the package's intended functionality and indicates a supply-chain compromise with install-time execution and host beaconing capabilities.
References
- npmjs.com/package/trimprompt/v/1.0.47 (opens in a new tab)
- npmjs.com/package/trimprompt/v/1.0.35 (opens in a new tab)
- npmjs.com/package/trimprompt/v/1.0.49 (opens in a new tab)
- npmjs.com/package/trimprompt/v/1.0.46 (opens in a new tab)
- npmjs.com/package/trimprompt/v/1.0.42 (opens in a new tab)
- npmjs.com/package/trimprompt/v/1.0.48 (opens in a new tab)