soupsieve · Prior to 2.9, selector_iter
Affects soupsieveSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium · fixed in 2.9 : update soupsieve when convenient.
Data as of 24 Nov 2026, 21:25 UTC
- Patch
- Available – fixed in 2.9
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 17 Sep 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10soupsievepkg:deb/ubuntu/soupsieve?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSsoupsievepkg:deb/ubuntu/soupsieve?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSsoupsievepkg:deb/ubuntu/soupsieve?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSsoupsievepkg:deb/ubuntu/soupsieve?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSsoupsievepkg:deb/ubuntu/soupsieve?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4. Prior to 2.9, selector_iter in src/soupsieve/css_parser.py trims the raw selector with RE_WS_END, an end-anchored WSC whitespace-and-comment expression used with search(), so the regular expression engine retries a greedy scan at every starting offset. An attacker-controlled valid selector containing a long internal whitespace run, or a selector containing a long CSS comment run followed by another token, causes quadratic CPU work before tokenization. User-controlled selectors can reach the path through soupsieve.compile() and BeautifulSoup.select(), while applications using only hard-coded selectors are unaffected. This root cause is separate from the IDENTIFIER and VALUE backtracking vulnerability because the cost occurs in RE_WS_END.search during trimming rather than token matching. The resulting CPU consumption can hold the Python GIL, exhaust workers, and stall a service without causing memory corruption or code execution. The issue is fixed in version 2.9.
References
- ubuntu.com/security/CVE-2026-85999 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-85999 (opens in a new tab)
- github.com/facelessuser/soupsieve/security/advisories/GHSA-j934-xhv5-fg8f (opens in a new tab)
- github.com/facelessuser/soupsieve/commit/cf198fcddc9230f06ed39f974eba0ce076b85cda (opens in a new tab)
- github.com/facelessuser/soupsieve/releases/tag/2.9 (opens in a new tab)