CVE-2026-104844
published medium CVSS 3.1 · 5.9PostCSS: Quadratic complexity in flat selector parsing allows CPU exhaustion
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| postcss | — | postcss-selector-parser< 7.1.6 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2023 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | git-bugaarch64 | Advisory build | 0.11.0-2.1 | OPENSUSE-SU-2026:12083-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | git-bugppc64le | Advisory build | 0.11.0-2.1 | OPENSUSE-SU-2026:12083-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | git-bugs390x | Advisory build | 0.11.0-2.1 | OPENSUSE-SU-2026:12083-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | git-bugx86_64 | Advisory build | 0.11.0-2.1 | OPENSUSE-SU-2026:12083-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | git-bug-bash-completionaarch64 | Advisory build | 0.11.0-2.1 | OPENSUSE-SU-2026:12083-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | git-bug-bash-completionppc64le | Advisory build | 0.11.0-2.1 | OPENSUSE-SU-2026:12083-1 |
Show 10 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | git-bug-bash-completions390x | Advisory build | 0.11.0-2.1 | OPENSUSE-SU-2026:12083-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | git-bug-bash-completionx86_64 | Advisory build | 0.11.0-2.1 | OPENSUSE-SU-2026:12083-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | git-bug-fish-completionaarch64 | Advisory build | 0.11.0-2.1 | OPENSUSE-SU-2026:12083-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | git-bug-fish-completionppc64le | Advisory build | 0.11.0-2.1 | OPENSUSE-SU-2026:12083-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | git-bug-fish-completions390x | Advisory build | 0.11.0-2.1 | OPENSUSE-SU-2026:12083-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | git-bug-fish-completionx86_64 | Advisory build | 0.11.0-2.1 | OPENSUSE-SU-2026:12083-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | git-bug-zsh-completionaarch64 | Advisory build | 0.11.0-2.1 | OPENSUSE-SU-2026:12083-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | git-bug-zsh-completionppc64le | Advisory build | 0.11.0-2.1 | OPENSUSE-SU-2026:12083-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | git-bug-zsh-completions390x | Advisory build | 0.11.0-2.1 | OPENSUSE-SU-2026:12083-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | git-bug-zsh-completionx86_64 | Advisory build | 0.11.0-2.1 | OPENSUSE-SU-2026:12083-1 |
Description
PostCSS Selector Parser is a CSS selector parser that integrates with PostCSS but does not require it. Prior to 7.1.6, src/parser.js splitWord() can receive a flat selector as one word token carrying many class or ID indexes because period and hash characters are not tokenizer word delimiters. The uniqs() deduplication and per-index class and ID membership checks repeatedly scan the class and ID index arrays, while a separate Sass-interpolation filtering pass also performs repeated linear scanning. Together, these passes make parsing quadratic in the number of indexes and allow a crafted selector to occupy a synchronous parser thread. The maxNestingDepth guard does not mitigate the issue because the hostile selector can have zero nesting depth. Only consumers that synchronously parse untrusted selectors in an exposed request path are affected; ordinary build-time parsing of trusted sources is not affected. This issue is fixed in version 7.1.6.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| postcss | postcss-selector-parser | < 7.1.6 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-400 CWE-400: Uncontrolled Resource Consumption
- CWE-407 CWE-407: Inefficient Algorithmic Complexity
References
3Provider assertions
2GitHub_M · cna
PostCSS: Quadratic complexity in flat selector parsing allows CPU exhaustion
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c2bf68754aeabc68bc154a83536c8d893f935d786be9b6c72b3a0248924b3d2b
- Ingested
- 02 Oct 2026, 19:09:27 UTC
- Source record
- Official CVE record