postcss-selector-parser before 6.1.6 and 7.1.8 Quadratic-Time Parsing Denial of Service (postcss postcss-selector-parser)

CVE-2026-144684
HIGH 8.2

At a glance

Source
CVE.org
State
PUBLISHED
Published
Updated
Assigner
VulnCheck
Affected products
postcss · postcss-selector-parser

Description

postcss-selector-parser before 6.1.6 and 7.x before 7.1.8 contains a denial of service vulnerability that allows remote attackers to exhaust CPU through quadratic-time selector parsing in src/parser.js. Attackers can supply tens of kilobytes of crafted selectors exploiting splitWord(), space(), parenthesis handling, or cssesc backslash escaping to block the Node.js event loop for seconds.

Weaknesses (CWE)

  • CWE-407 — Inefficient Algorithmic Complexity

Credits

  • Zachariah Mithani (AploSec) finder

References

Scores

VersionScoreVectorScored by
CVSS 4.0HIGH 8.2CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NVulnCheck
CVSS 3.1MEDIUM 5.9CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HVulnCheck

European references

Affected products

ProductAffected versions
postcss · postcss-selector-parser
affected : ≥ 4.0.0-rc.0 < 6.1.6
affected : ≥ 7.0.0 < 7.1.8
Other versions : unaffected

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
ENISA EUVDENISA — reproduction authorised, source acknowledged