Skip to content

chore(deps): update dependency postcss-selector-parser to v6.1.5 [security] - #1961

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/npm-postcss-selector-parser-vulnerability
Open

renovate[bot] wants to merge 1 commit into
masterfrom
renovate/npm-postcss-selector-parser-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
postcss-selector-parser 6.0.13 → 6.1.5 age adoption passing confidence

PostCSS: Quadratic complexity in flat selector parsing allows CPU exhaustion

CVE-2026-104844 / GHSA-rj75-hqrm-r3gf

More information

Details

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 index count, not the input size.
The nesting depth of such a selector is 0, so the maxNestingDepth guard added
in 7.1.3 offers no protection.

Reachability is deployment dependent. Only consumers that parse untrusted,
attacker-supplied selectors synchronously in a request path are exposed, for
example CSS sanitizers, CSS-in-JS services and online playgrounds. Ordinary
build-time use on trusted sources is not affected.

Patches

Fixed in 7.1.6. The three passes now use Set membership tests, making parsing
linear in the number of indexes. There is no behaviour change: parsing is
byte-identical on a differential corpus of 8413 selectors.

Workarounds

Cap the size of selectors accepted from untrusted sources before parsing.

Severity

  • CVSS Score: 5.9 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

postcss/postcss-selector-parser (postcss-selector-parser)

v6.1.5

Compare Source

The 6.x line is now in security-only maintenance

This release exists because the advisory above covers every published 6.x
version, and until now the only remediation on offer was an upgrade to 7.x.
6.1.5 is the patched version for the 6.x line.

The line is kept alive for the installed base that cannot move to 7 yet, Tailwind
CSS 3 in particular, which depends on ^6.1.2. From here on it receives security
fixes only: no features, no other bug fixes, no type changes. Everything else
goes to 7.x, where this package is actively developed. Tailwind CSS 4 no longer
depends on this package at all, so this line is expected to retire on its own.

6.1.5 is published under the legacy-v6 npm dist-tag, so
npm install postcss-selector-parser keeps resolving to 7.x. Existing ^6
ranges pick up 6.1.5 as usual.

v6.1.4

Compare Source

  • fix: tolerate non-node children when serializing selectors

v6.1.3

Compare Source

v6.1.2

Compare Source

  • Fixed: erroneous trailing combinators in pseudos

v6.1.1

Compare Source

  • Fixed: improve typings of constructor helpers (#​292)

v6.1.0

Compare Source

  • Feature: add sourceIndex to Selector nodes (#​290)

v6.0.16

Compare Source

  • Fixed: add missing index argument to each/walk callback types (#​289)

v6.0.15

Compare Source

  • Fixed: Node#prev and Node#next type for the first/last node

v6.0.14

Compare Source

  • Fixed: type definitions

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@netlify

netlify Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for compiled-css-in-js canceled.

Name Link
🔨 Latest commit e10cf55
🔍 Latest deploy log https://app.netlify.com/projects/compiled-css-in-js/deploys/6afa602ab36051c751975d8d

@changeset-bot

changeset-bot Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: e10cf55

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@renovate
renovate Bot force-pushed the renovate/npm-postcss-selector-parser-vulnerability branch 2 times, most recently from 4a70117 to 12d2d86 Compare October 21, 2026 02:38
@renovate renovate Bot changed the title chore(deps): update dependency postcss-selector-parser to v7 [security] chore(deps): update dependency postcss-selector-parser to v7 [security] - autoclosed Oct 26, 2026
@renovate renovate Bot closed this Oct 26, 2026
@renovate
renovate Bot deleted the renovate/npm-postcss-selector-parser-vulnerability branch October 26, 2026 14:32
@renovate renovate Bot changed the title chore(deps): update dependency postcss-selector-parser to v7 [security] - autoclosed chore(deps): update dependency postcss-selector-parser to v6.1.5 [security] Nov 1, 2026
@renovate renovate Bot reopened this Nov 1, 2026
@renovate
renovate Bot force-pushed the renovate/npm-postcss-selector-parser-vulnerability branch from 12d2d86 to 65d1b38 Compare November 1, 2026 05:10
@renovate
renovate Bot force-pushed the renovate/npm-postcss-selector-parser-vulnerability branch from 65d1b38 to 8fe3609 Compare November 10, 2026 02:01
@renovate
renovate Bot enabled auto-merge (squash) November 10, 2026 02:01
@renovate
renovate Bot force-pushed the renovate/npm-postcss-selector-parser-vulnerability branch 3 times, most recently from 8672244 to eb6222a Compare November 16, 2026 01:18
@renovate
renovate Bot force-pushed the renovate/npm-postcss-selector-parser-vulnerability branch from eb6222a to e10cf55 Compare November 16, 2026 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants