selparsecss-selector (npm) · Malicious Code
Affects selparsecss-selectorSource GCVE Database
Malicious package : remove selparsecss-selector and rotate any secrets on hosts that installed it.
Data as of 11 Nov 2026, 17:35 UTC
Malicious package
Published to npm · OSV MAL-2026-10687
What to do
Remove selparsecss-selector 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 |
|---|---|---|
| npmselparsecss-selector | 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 selparsecss-selector npm package versions 1.0.0, 1.1.0, 2.0.0, and 2.1.0 is a malicious fork impersonating the legitimate postcss-selector-parser package. It includes obfuscated code that executes child_process commands, which are unnecessary for a CSS selector parser, indicating malicious intent. The package uses bytenode to load opaque bytecode files, further hiding its malicious payload. This supply-chain attack targets developers intending to use the legitimate postcss-selector-parser package.
References
- npmjs.com/package/selparsecss-selector/v/1.1.0 (opens in a new tab)
- npmjs.com/package/selparsecss-selector/v/2.0.0 (opens in a new tab)
- npmjs.com/package/selparsecss-selector/v/1.0.0 (opens in a new tab)
- npmjs.com/package/selparsecss-selector/v/2.1.0 (opens in a new tab)
- github.com/advisories/GHSA-pg6x-gj9c-922c (opens in a new tab)