Repository navigation
fix(security): update dependency postcss-selector-parser to v7 [security] - autoclosed - #1574
Closed
renovate[bot] wants to merge 1 commit into
Closed
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Contributor
Author
|
❌ Deploy Preview for openfeature failed. Why did it fail? →
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
renovate
Bot
force-pushed
the
renovate/major-vulnerability-updates
branch
from
October 13, 2026 14:01
c85da50 to
fe75c87
Compare
renovate
Bot
force-pushed
the
renovate/major-vulnerability-updates
branch
from
October 20, 2026 19:10
fe75c87 to
b06702b
Compare
renovate
Bot
force-pushed
the
renovate/major-vulnerability-updates
branch
from
October 22, 2026 14:08
b06702b to
f24cc10
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^6.1.3→^7.0.0PostCSS: 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...reachessplitWord()as a single word token carrying n class or idindexes. 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(), theindices.forEachloop, 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
maxNestingDepthguard addedin 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:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
postcss/postcss-selector-parser (postcss-selector-parser)
v7.1.6Compare Source
v7.1.5Compare Source
|as a namespace (#324 by @spokodev)*namespace in attribute selectors (#325 by @spokodev)[,(and trailing|(#330 by @theRizwan)v7.1.4Compare Source
v7.1.3Compare Source
v7.1.2Compare Source
v7.1.1Compare Source
v7.1.0Compare Source
v7.0.0Compare Source
v6.1.5Compare 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 securityfixes 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-v6npm dist-tag, sonpm install postcss-selector-parserkeeps resolving to 7.x. Existing^6ranges pick up 6.1.5 as usual.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.