postcss-selector-parser

Ecosystem: npm

Downloads:

Vulnerabilities from the last (months)
  • 0CriticalAffects 0 versions
  • 0HighAffects 0 versions
  • 0MediumAffects 0 versions
  • 1ModerateAffects 2 versions
  • 1LowAffects 2 versions
Severity distribution (all time)
2vulnerabilities
  • Critical0 (0.0%)
  • High0 (0.0%)
  • Medium0 (0.0%)
  • Moderate1 (50.0%)
  • Low1 (50.0%)

Monthly breakdown

  • Critical
  • High
  • Medium
  • Moderate
  • Low
  • 1 vulnerabilities
    • Critical: 0
    • High: 0
    • Medium: 0
    • Moderate: 1
    • Low: 0
  • 1 vulnerabilities
    • Critical: 0
    • High: 0
    • Medium: 0
    • Moderate: 0
    • Low: 1

Vulnerabilities (2)

Known vulnerabilities affecting postcss-selector-parser, based on data from OSV.

Vulnerabilities affecting postcss-selector-parser
IDSeveritySummaryAffected versionsPublishedSource
GHSA-rj75-hqrm-r3gfModeratePostCSS: Quadratic complexity in flat selector parsing allows CPU exhaustion### Impact `.` and `#` are not word delimiters in the tokenizer, so a flat selector such as `.a.a.a...` reaches `splitWord()` as a single word token carrying n class or id indexes. Three passes scanned those index arrays linearly for every index, making the parse O(n^2) in the number of indexes rather than in input length: `uniqs()`, the `indices.forEach` loop, and the Sass-interpolation filter. Parsing a 400 KB flat selector took ~34 s on a modern laptop, fully occupying a single thread. A benign selector of identical byte size parses in tens of milliseconds, so the cost is driven by the ind
  • >= 7.0.0, < 7.1.6
  • < 6.1.5
GitHub (opens in a new tab)
GHSA-w9m9-85wc-3x92Lowpostcss-selector-parser allows denial of service through uncontrolled AST recursionA vulnerability was determined in postcss-selector-parser before 6.1.3 and 7.1.1. Affected is the function toString of the file src/selectors/container.js of the component AST Serialization. Executing a manipulation can lead to uncontrolled recursion. It is possible to launch the attack remotely. The exploit has been publicly disclosed and may be utilized. The vendor explains, that according to his definition "DoS on server-side on user-generated CSS is low risk for us (since most users compile own CSS with PostCSS)."
  • >= 6.1.0, < 6.1.3
  • >= 7.1.0, < 7.1.3
GitHub (opens in a new tab)
  • GHSA-rj75-hqrm-r3gfModerate
    PostCSS: Quadratic complexity in flat selector parsing allows CPU exhaustion
    • >= 7.0.0, < 7.1.6
    • < 6.1.5

    ### Impact `.` and `#` are not word delimiters in the tokenizer, so a flat selector such as `.a.a.a...` reaches `splitWord()` as a single word token carrying n class or id indexes. Three passes scanned those index arrays linearly for every index, making the parse O(n^2) in the number of indexes rather than in input length: `uniqs()`, the `indices.forEach` loop, and the Sass-interpolation filter. Parsing a 400 KB flat selector took ~34 s on a modern laptop, fully occupying a single thread. A benign selector of identical byte size parses in tens of milliseconds, so the cost is driven by the ind

    CVE: CVE-2026-104844

  • GHSA-w9m9-85wc-3x92Low
    postcss-selector-parser allows denial of service through uncontrolled AST recursion
    • >= 6.1.0, < 6.1.3
    • >= 7.1.0, < 7.1.3

    A vulnerability was determined in postcss-selector-parser before 6.1.3 and 7.1.1. Affected is the function toString of the file src/selectors/container.js of the component AST Serialization. Executing a manipulation can lead to uncontrolled recursion. It is possible to launch the attack remotely. The exploit has been publicly disclosed and may be utilized. The vendor explains, that according to his definition "DoS on server-side on user-generated CSS is low risk for us (since most users compile own CSS with PostCSS)."

    CVE: CVE-2026-9358

Showing 1-2 of 2 vulnerabilities