#1148449 soupsieve: CVE-2026-85999 CVE-2026-86000

Package:
src:soupsieve
Source:
src:soupsieve
Submitter:
Salvatore Bonaccorso
Date:
2026-11-10 23:07:01 UTC
Severity:
normal
Tags:
#1148449#5
Date:
2026-09-19 18:52:19 UTC
From:
To:
Hi,

The following vulnerabilities were published for soupsieve.

CVE-2026-85999[0]:
| 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.


CVE-2026-86000[1]:
| Soup Sieve is a CSS selector library designed to be used with
| Beautiful Soup 4. Prior to 2.9, the selector parser in
| src/soupsieve/css_parser.py defines IDENTIFIER with adjacent
| quantified groups over overlapping character classes, and VALUE
| embeds IDENTIFIER for attribute selectors. When an attacker-
| controlled selector contains a long identifier or unquoted
| attribute-value run followed by input that makes the overall match
| fail, the regular expression engine explores quadratically many
| splits between the overlapping groups. User-controlled selectors can
| reach this path through soupsieve.compile(), soupsieve.select(), or
| BeautifulSoup.select(), while applications using only hard-coded
| selectors are unaffected. The resulting CPU consumption can hold the
| Python GIL, exhaust application workers, and stall a service;
| successful plain identifier matches are linear, and the issue does
| not cause memory corruption or code execution. The issue is fixed in
| version 2.9.


If you fix the vulnerabilities please also make sure to include the
CVE (Common Vulnerabilities & Exposures) ids in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-85999
https://www.cve.org/CVERecord?id=CVE-2026-85999
https://github.com/facelessuser/soupsieve/security/advisories/GHSA-j934-xhv5-fg8f
[1] https://security-tracker.debian.org/tracker/CVE-2026-86000
https://www.cve.org/CVERecord?id=CVE-2026-86000
https://github.com/facelessuser/soupsieve/security/advisories/GHSA-gjv8-xp57-g29c

Please adjust the affected versions in the BTS as needed.

Regards,
Salvatore

#1148449#10
Date:
2026-11-10 23:05:47 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
soupsieve, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1148449@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stefano Rivera <stefanor@debian.org> (supplier of updated soupsieve package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 10 Nov 2026 16:58:37 +0000
Source: soupsieve
Architecture: source
Version: 4.1-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Stefano Rivera <stefanor@debian.org>
Closes: 1148449
Changes:
 soupsieve (4.1-1) unstable; urgency=medium
 .
   * New upstream release.
     - Avoids DoS through long whitespace runs (CVE-2026-85999) and long
       identifiers (CVE-2026-86000). (Closes: #1148449)
Checksums-Sha1:
 a3107bf3e9168fe92311842e20c458e087be2347 1694 soupsieve_4.1-1.dsc
 eb381c6d40eecf71e54979e9374a66d637a74d19 161955 soupsieve_4.1.orig.tar.gz
 a752d21bb39c20013508554178b889450627b1fd 4192 soupsieve_4.1-1.debian.tar.xz
 d6c7d620b5ff0334f27f340c8f2a2c65d03dc8d0 6369 soupsieve_4.1-1_source.buildinfo
Checksums-Sha256:
 aacb3b0ed2d47e007911003376aef029f136e54abb22a37364843fe9ca9238be 1694 soupsieve_4.1-1.dsc
 ca9abf7126667010d8f6e9b39bfc1bc3b23c8aed9bcb0f54a754dde969bb8aab 161955 soupsieve_4.1.orig.tar.gz
 8b52797f230406ac51dc9e01eb57f38b3019cbd0500420e19d4d3b1140c82346 4192 soupsieve_4.1-1.debian.tar.xz
 8e14383e6f2cfd2313d7f56669488f7868faf24a065e0deca61eb720f2d2a0b6 6369 soupsieve_4.1-1_source.buildinfo
Files:
 9a77418bce6fe0957466d16d8f581c44 1694 python optional soupsieve_4.1-1.dsc
 07b987a85dc0f15530a78d82d41926b9 161955 python optional soupsieve_4.1.orig.tar.gz
 f42dd4f304d87f169993fc8a8437a7ff 4192 python optional soupsieve_4.1-1.debian.tar.xz
 f46bc988dbc48820c9bc43795f4f7415 6369 python optional soupsieve_4.1-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iIoEARYKADIWIQTumtb5BSD6EfafSCRHew2wJjpU2AUCavOfKhQcc3RlZmFub3JA
ZGViaWFuLm9yZwAKCRBHew2wJjpU2GMoAP4ml0uY1q2re/OinmVFFVWRSuYmGPnZ
zrFoYfKmcu++KAEAieLxGLzLJSPXuXJwYB659f45EY+pkWX3B/Z6GQwG0Q0=
=pa/3
-----END PGP SIGNATURE-----