Skip to main content
MalwarePublished Updated

postcss-minify-selector (npm) · Malicious Code

Affects postcss-minify-selectorSource GCVE Database

0

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

Data as of 9 Jul 2026, 09:53 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-5837

What to do

Remove postcss-minify-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
npmpostcss-minify-selectorAffected
  • 0.1.2 – 2.0.2
12 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 'postcss-minify-selector' is a malicious typosquat designed to mimic the legitimate 'postcss-minify-selectors' plugin. It includes a dependency on another similarly named typosquat package and executes side-effect code upon being required, which can lead to full system compromise. Any system with this package installed or running should be considered fully compromised, and all secrets and keys must be rotated. Removal of the package alone may not eliminate the malicious presence.

References

Community reviews

Loading reviews…