tostpro (npm) · Malicious Code
Affects tostproSource GCVE Database
Malicious package : remove tostpro and rotate any secrets on hosts that installed it.
Data as of 25 Nov 2026, 11:28 UTC
Malicious package
Published to npm · OSV MAL-2026-17564
What to do
Remove tostpro 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 |
|---|---|---|
| npmtostpro | 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 tostpro@100.2.0 contains a malicious preinstall script that executes automatically during installation. This script is obfuscated and designed to send the full environment variables, potentially including sensitive credentials, to a remote server after a specific date in 2026. The package's README falsely claims no network access or data collection, indicating deliberate evasion. This behavior poses a significant risk of credential leakage and unauthorized data exfiltration.
References
- npmjs.com/package/tostpro/v/100.6.0 (opens in a new tab)
- npmjs.com/package/tostpro/v/100.2.0 (opens in a new tab)
- npmjs.com/package/tostpro/v/100.7.0 (opens in a new tab)
- github.com/advisories/GHSA-x5qq-j2hm-34m3 (opens in a new tab)
- npmjs.com/package/tostpro/v/99.101.0 (opens in a new tab)
- npmjs.com/package/tostpro/v/112.5.9 (opens in a new tab)
- npmjs.com/package/tostpro/v/99.100.0 (opens in a new tab)
- npmjs.com/package/tostpro/v/99.99.99 (opens in a new tab)
- security.snyk.io/vuln/SNYK-JS-TOSTPRO-20554192 (opens in a new tab)
- github.com/advisories/GHSA-462h-3mh4-gh4m (opens in a new tab)