Skip to main content
MalwarePublished Updated

selparsecss-selector (npm) · Malicious Code

Affects selparsecss-selectorSource GCVE Database

0

Malicious package : remove selparsecss-selector and rotate any secrets on hosts that installed it.

Data as of 11 Nov 2026, 17:35 UTC

Classification

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

ProductAffectedFixed in
npmselparsecss-selectorAffected
  • 1.0.0 – 2.1.0
4 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 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

Community reviews

Loading reviews…