postcss-minify-selector (npm) · Malicious Code
Affects postcss-minify-selectorSource GCVE Database
Malicious package : remove postcss-minify-selector and rotate any secrets on hosts that installed it.
Data as of 9 Jul 2026, 09:53 UTC
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
| Product | Affected | Fixed in |
|---|---|---|
| npmpostcss-minify-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 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
- npmjs.com/package/postcss-minify-selector/v/2.0.2 (opens in a new tab)
- npmjs.com/package/postcss-minify-selector/v/2.0.1 (opens in a new tab)
- npmjs.com/package/postcss-minify-selector/v/0.1.2 (opens in a new tab)
- npmjs.com/package/postcss-minify-selector/v/0.1.3 (opens in a new tab)
- github.com/advisories/GHSA-gwv6-f7j6-4xc8 (opens in a new tab)
- npmjs.com/package/postcss-minify-selector/v/0.1.10 (opens in a new tab)
- npmjs.com/package/postcss-minify-selector/v/0.1.7 (opens in a new tab)
- npmjs.com/package/postcss-minify-selector/v/0.1.9 (opens in a new tab)
- npmjs.com/package/postcss-minify-selector/v/0.1.5 (opens in a new tab)
- npmjs.com/package/postcss-minify-selector/v/0.1.4 (opens in a new tab)
- npmjs.com/package/postcss-minify-selector/v/0.1.8 (opens in a new tab)
- npmjs.com/package/postcss-minify-selector/v/0.1.11 (opens in a new tab)
- npmjs.com/package/postcss-minify-selector/v/0.1.6 (opens in a new tab)