Malicious code in postcss-minify-selector (npm)
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.
AI Analysis
Technical Summary
The 'postcss-minify-selector' npm package is a typosquatting malicious package that closely imitates the legitimate 'postcss-minify-selectors' plugin by name and internal identifiers. It declares a dependency on another typosquat package 'postcss-minify-selector-parser', and unconditionally requires a subpath module that executes side-effect code at load time. This behavior is characteristic of a lure-plus-dropper attack, where requiring the package silently executes malicious code. The package is confirmed to fully compromise any computer on which it is installed or run.
Potential Impact
Any computer with this package installed or running is considered fully compromised. Attackers may gain full control, potentially accessing all stored secrets and keys. Immediate rotation of all credentials from a separate, uncompromised system is necessary. Simply removing the package does not guarantee removal of all malicious artifacts or backdoors.
Mitigation Recommendations
No official patch or fix is available. The package should be removed immediately from all systems. All secrets and keys stored on affected systems must be rotated from a different, secure computer. Because full compromise is likely, further forensic analysis and remediation may be required to ensure complete removal of malicious code.
Malicious code in postcss-minify-selector (npm)
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.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The 'postcss-minify-selector' npm package is a typosquatting malicious package that closely imitates the legitimate 'postcss-minify-selectors' plugin by name and internal identifiers. It declares a dependency on another typosquat package 'postcss-minify-selector-parser', and unconditionally requires a subpath module that executes side-effect code at load time. This behavior is characteristic of a lure-plus-dropper attack, where requiring the package silently executes malicious code. The package is confirmed to fully compromise any computer on which it is installed or run.
Potential Impact
Any computer with this package installed or running is considered fully compromised. Attackers may gain full control, potentially accessing all stored secrets and keys. Immediate rotation of all credentials from a separate, uncompromised system is necessary. Simply removing the package does not guarantee removal of all malicious artifacts or backdoors.
Mitigation Recommendations
No official patch or fix is available. The package should be removed immediately from all systems. All secrets and keys stored on affected systems must be rotated from a different, secure computer. Because full compromise is likely, further forensic analysis and remediation may be required to ensure complete removal of malicious code.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5837
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-gwv6-f7j6-4xc8"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4f6c3d68715ace431589c5
Added to database: 07/09/2026, 09:39:09 UTC
Last enriched: 07/09/2026, 09:53:49 UTC
Last updated: 07/26/2026, 20:25:02 UTC
Views: 9
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.