gptline · Soup Sieve: Polynomial-time ReDoS (O(n²))
Affects gptlineSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium : upgrade to 1.0.8_23 when convenient.
Data as of 4 Dec 2026, 20:05 UTC
- Patch
- Available – fixed in 1.0.8_23, 2.9.0
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 4 Dec 2026.
What to do
Upgrade gptline to 1.0.8_23; soupsieve to 2.9.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewgptlinepkg:brew/gptlineOther threats | Affected
| Fixed in
|
PyPIsoupsievepkg:pypi/soupsieveOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in soupsieve version 1.0.8_23 that fixes the regex to avoid unanchored .search() calls causing quadratic backtracking. Users should upgrade to version 1.0.8_23 or later to remediate this issue. Until patched, avoid passing user-controlled CSS selectors to soupsieve or BeautifulSoup's select functions. No other mitigation is required as the issue is fixed in the stated version.
Description
A Regular Expression Denial of Service (ReDoS) vulnerability exists in soupsieve's whitespace/comment trimming regex RE_WS_END, which is used during CSS selector tokenization. The regex is unanchored at the start and uses .search(), causing quadratic time complexity (O(n²)) on valid selectors with long whitespace or comment runs not exactly at the string end. This leads to significant CPU consumption and stalls the interpreter for several seconds on large inputs. The issue affects soupsieve versions prior to 1.0.8_23 and is exploitable when user-controlled selectors are passed to soupsieve or BeautifulSoup's select functions.
References
- github.com/facelessuser/soupsieve/security/advisories/GHSA-j934-xhv5-fg8f (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-85999 (opens in a new tab)
- github.com/facelessuser/soupsieve/commit/cf198fcddc9230f06ed39f974eba0ce076b85cda (opens in a new tab)
- github.com/facelessuser/soupsieve (opens in a new tab)
- github.com/facelessuser/soupsieve/releases/tag/2.9 (opens in a new tab)