Skip to main content
MalwarePublished

trimprompt (npm) · Malicious Code

Affects trimpromptSource GCVE Database

0

Malicious package : remove trimprompt and rotate any secrets on hosts that installed it.

Data as of 7 Aug 2026, 07:42 UTC

Classification

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

ProductAffectedFixed in
npmtrimpromptAffected
  • 1.0.35 – 1.0.49
6 affected builds
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

Community reviews

Loading reviews…