Vulnerability in postcss-selector-parser
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2026-104844 has been found in postcss-selector-parser.
Attackers can target a specific entry point like indices.forEach over the network to misuse the product.
Risk of unauthorized operations or information disclosure. CVSS score: 5.9/10.
What to do: upgrade postcss-selector-parser to 7.1.6 or later.
If unsure, ask your IT team or search "postcss-selector-parser CVE-2026-104844" on the vendor's site.
CVE-2026-104844 (postcss-selector-parser) — CWE-400 / CVSS v3 5.9
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Attack surface: indices.forEach / maxNestingDepth
Patched: 7.1.6 — apply immediately
Workaround: Cap the size of selectors accepted from untrusted sources before parsing.
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (CWE-400) exists in postcss-selector-parser. Attackers reach the vulnerable code path via indices.forEach without authentication.
Check the vendor advisory for the affected versions of postcss-selector-parser. Attack surface: indices.forEach / maxNestingDepth.
Severity: Medium (CVSS 5.9/10). Risk of unauthorized operations or information disclosure.
Update to 7.1.6.
Workaround: Cap the size of selectors accepted from untrusted sources before parsing.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'postcss-selector-parser' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'postcss-selector-parser' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
postcss-selector-parserを grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply temporary workaroundmitigate
Cap the size of selectors accepted from untrusted sources before parsing.パッチが適用されるまでの応急処置として、Cap the size of selectors accepted from untrusted sources before parsing. を実施。回避策の副作用 (機能低下) を確認した上で。
-
3
Apply patchpatch
Upgrade postcss-selector-parser to 7.1.6ステージング環境で 7.1.6 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| npmpostcss-selector-parser |
< 6.1.5→ 6.1.5 |
6.1.5 |
Original description The description as published by the source.
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.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com