Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in postcss-minify-selector (npm)

0
Critical
Published: 06/15/2026 (06/15/2026, 20:17:18 UTC)
Source: GCVE Database
Product: postcss-minify-selector

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

npmghsa
postcss-minify-selector
Affected versions
=2.0.2=2.0.1=0.1.2=0.1.3=0.1.10=0.1.7=0.1.9=0.1.5=0.1.4=0.1.8=0.1.11=0.1.6

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

AILast updated: 07/09/2026, 09:53:49 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses