postcss-theme-provider (npm) · Malicious Code
Affects postcss-theme-providerSource GCVE Database
Malicious package : remove postcss-theme-provider and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 16:15 UTC
Malicious package
Published to npm · OSV MAL-2026-13518
What to do
Remove postcss-theme-provider 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 |
|---|---|---|
| npmpostcss-theme-provider | 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 postcss-theme-provider npm package version 1.0.2 contains malicious code that executes upon requiring the package. This code queries public Ethereum RPC endpoints for a transaction from a hardcoded attacker wallet, extracts IP addresses from the transaction data, fetches XOR-encrypted JavaScript payloads from these IPs, decrypts and evaluates them, and then spawns a detached Node.js process to run the payload. The malicious code uses Unicode escapes to obfuscate critical strings such as module names and method calls. The attacker can rotate the command-and-control server by posting new Ethereum transactions, enabling dynamic payload updates.
References
- npmjs.com/package/postcss-theme-provider/v/1.0.2 (opens in a new tab)
- github.com/advisories/GHSA-36cv-vvf7-gj75 (opens in a new tab)
- npmjs.com/package/postcss-theme-provider/v/1.0.3 (opens in a new tab)
- npmjs.com/package/postcss-theme-provider/v/1.0.4 (opens in a new tab)
- npmjs.com/package/postcss-theme-provider/v/1.0.1 (opens in a new tab)