THREAT OPS › Threat News › [GHSA] GHSA-j934-xhv5-fg8f (medium) — Soup Sieve: Polynomial-time ReDoS (O(n²)) in the whitespace/comment trimming regex `RE_WS_END` (triggers on VALID selectors)
[GHSA] GHSA-j934-xhv5-fg8f (medium) — Soup Sieve: Polynomial-time ReDoS (O(n²)) in the whitespace/comment trimming regex `RE_WS_END` (triggers on VALID selectors)
GHSA-j934-xhv5-fg8f Severity: medium CVE: CVE-2026-85999
Soup Sieve: Polynomial-time ReDoS (O(n²)) in the whitespace/comment trimming regex `RE_WS_END` (triggers on VALID selectors)
## Summary
Before tokenizing, `selector_iter` trims leading/trailing whitespace and comments by running two regexes over the whole raw selector with `.search()`. The trailing one, `RE_WS_END = re.compile(r'{WSC}*$')
Indicators of compromise
- CVE-2026-85999cve
Original source: https://github.com/advisories/GHSA-j934-xhv5-fg8f