CVE-2026-104844

Source
https://cve.org/CVERecord?id=CVE-2026-104844
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-104844.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-104844
Aliases
  • GHSA-rj75-hqrm-r3gf
Published
2026-10-02T15:43:14Z
Modified
2026-10-04T02:46:39Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
PostCSS: Quadratic complexity in flat selector parsing allows CPU exhaustion
Details

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.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-400",
        "CWE-407"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/104xxx/CVE-2026-104844.json"
}
References

Affected packages

Git / github.com/postcss/postcss-selector-parser

Affected ranges

Type
GIT
Repo
https://github.com/postcss/postcss-selector-parser
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events":  [
        {
            "introduced":  "0"
        },
        {
            "fixed":  "7.1.6"
        }
    ],
    "source":  [
        "AFFECTED_FIELD",
        "REFERENCES"
    ]
}

Affected versions

5.*
5.0.0
5.0.0-rc.2
5.0.0-rc.4
6.*
6.0.0
6.0.1
6.0.2
6.1.3
6.1.4
7.*
7.1.2
7.1.3
7.1.4
7.1.5
v0.*
v0.0.1
v0.0.2
v0.0.3
v0.0.4
v0.0.5
v1.*
v1.0.0
v1.0.1
v1.1.0
v1.1.1
v1.1.2
v1.1.3
v1.1.4
v1.2.0
v1.2.1
v1.3.0
v1.3.1
v1.3.2
v1.3.3
v2.*
v2.0.0
v2.1.0
v2.1.1
v2.2.0
v2.2.1
v2.2.2
v2.2.3
v3.*
v3.0.0
v3.0.0-rc.0
v3.1.0
v3.1.1
v4.*
v4.0.0
v4.0.0-rc.0
v4.0.0-rc.1
v5.*
v5.0.0-rc.0
v5.0.0-rc.1
v5.0.0-rc.3
v6.*
v6.0.10
v6.0.11
v6.0.12
v6.0.13
v6.0.14
v6.0.15
v6.0.16
v6.0.3
v6.0.4
v6.0.5
v6.0.6
v6.0.7
v6.0.8
v6.0.9
v6.1.0
v6.1.1
v6.1.2
v7.*
v7.0.0
v7.1.0
v7.1.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-104844.json"