CVE catalog

CVE-2026-85999

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 wh

[CVE catalog]

Severity
Medium · CVSS 5.9CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.61% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiansoupsievesid2.8.4-1vulnerable
Debiansoupsieveforky2.8.4-1vulnerable
Debiansoupsievetrixie2.7-1vulnerable
Debiansoupsievebookworm2.3.2-1vulnerable
PyPIsoupsieveNot reported2.9.0fixed
PyPIsoupsieveNot reported2.9.0fixed
Susepython-soupsievelinux enterprise module for python 3 15 sp72.5-150600.3.6.1fixed
Opensusepython-soupsievetumbleweed2.9.2-1.1fixed
Opensusepython-soupsieveleap 16.02.6-160000.5.1fixed
Susepython-soupsievelinux enterprise server 16.02.6-160000.5.1fixed
Susepython-soupsievelinux enterprise server for sap applications 16.02.6-160000.5.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiansoupsievesourcesid(unfixed)not yet assignedNot reported[1148449]
Debiansoupsievesourceforky(unfixed)not yet assignedNot reported[1148449]
Debiansoupsievesourcetrixie(unfixed)not yet assignedNot reported[1148449]
Debiansoupsievesourcebookworm(unfixed)not yet assignedNot reported[1148449]
PyPIsoupsievePyPINot reported2.9.0Not reportedGHSA-J934-XHV5-FG8FNot reported
PyPIsoupsievePyPINot reported2.9.0Not reportedPYSEC-2026-4171Not reported
Susepython-soupsieverpmlinux enterprise module for python 3 15 sp72.5-150600.3.6.1Not reportedSUSE-SU-2026:4365-1Not reported
Opensusepython-soupsieverpmtumbleweed2.9.2-1.1Not reportedOPENSUSE-SU-2026:11866-1Not reported
Opensusepython-soupsieverpmleap 16.02.6-160000.5.1Not reportedOPENSUSE-SU-2026:22149-1Not reported
Susepython-soupsieverpmlinux enterprise server 16.02.6-160000.5.1Not reportedSUSE-SU-2026:24267-1Not reported
Susepython-soupsieverpmlinux enterprise server for sap applications 16.02.6-160000.5.1Not reportedSUSE-SU-2026:24267-1Not reported

[Debian bug #1148449]

Notes

[trixie] soupsieve: Minor issue [bookworm] soupsieve: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [soupsieve]

    Details (2)
    • 2.3.2-1 · all · bookworm

      Affected

      nvd · soupsieve · debian · bookworm; nvd · soupsieve · debian · 12

    • 2.3.2-1 · all · bookworm

      Affected

      nvd · soupsieve · debian · bookworm; nvd · soupsieve · debian · 12

[Debian 13 (Trixie)]

  • Source package: [soupsieve]

    Details (2)
    • 2.7-1 · all · trixie

      Affected

      nvd · soupsieve · debian · 13

    • 2.7-1 · all · trixie

      Affected

      nvd · soupsieve · debian · 13

[openSUSE Tumbleweed]

  • Source package: [python-soupsieve]

    Details (1)
    • 2.8.4-1.2 · noarch · tumbleweed

      Unknown · Fixed: 2.9.2-1.1

      Version impact unknown

      nvd · python-soupsieve · opensuse · tumbleweed

  • Source package: [python-soupsieve]

    Details (1)
    • 2.8.4-1.2 · noarch · tumbleweed

      Unknown · Fixed: 2.9.2-1.1

      Version impact unknown

      nvd · python-soupsieve · opensuse · tumbleweed

Observed:

References