Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-126191— Soup Sieve: Exponential ReDoS in selector compilation via \9-run in CSS_ESCAPES/IDENTIFIER

Quick assessment

Affected
facelessuser soupsieve
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Soup Sieve 是一个专为配合 Beautiful Soup 4 使用的 CSS 选择器库。在 3.0 版本之前,CSS_ESCAPES 和 IDENTIFIER 正则表达式子模式在处理属性名或标签位置中连续出现的歧义数字转义序列时,可能会发生指数级回溯。该故障发生在通过 soupsieve.compile() 或 Beautiful Soup 的 select() 方法编译选择器的过程中,且早于 SELECTOR_LIMIT 限制被应用之前。因此,如果应用程序接受来自不可信来源的选择器字符串,攻击者可能利用

CVSS 7.5 · High EPSS 0.43% · P39

Affected Version Matrix 1

VendorProduct Version RangeStatus
facelessuser soupsieve < 3.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-126191

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Soup Sieve: Exponential ReDoS in selector compilation via \9-run in CSS_ESCAPES/IDENTIFIER
Source: CVE Program / CVE List V5
Vulnerability Description
Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4. Prior to 3.0, the CSS_ESCAPES and IDENTIFIER regular-expression subpatterns can backtrack exponentially on runs of ambiguous digit escapes in an attribute-name or tag position of an otherwise valid selector. The failure occurs during selector compilation through soupsieve.compile() or Beautiful Soup select() before SELECTOR_LIMIT is applied, so an application that accepts untrusted selector strings can have a worker stalled by a short input. This issue is fixed in version 3.0.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
CWE-1333
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
facelessuser soupsieve < 3.0 -

II. Public POCs for CVE-2026-126191

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-126191

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-126191 (2)

Vendor Advisories for CVE-2026-126191 (1)

Vendor Pages for CVE-2026-126191 (1)

Same Patch Batch · facelessuser · 2026-11-12 · 5 CVEs total

CVE-2026-126190 7.5 HIGH Soup Sieve: Polynomial-time denial of service in the descendant combinator
CVE-2026-126192 6.3 MEDIUM Soup Sieve: General sibling combinator inside :has() matches untrusted HTML in quadratic t
CVE-2026-126189 5.3 MEDIUM Soup Sieve: Quadratic-time denial of service when matching `:has()`
CVE-2026-126193 5.3 MEDIUM Soup Sieve: Uncontrolled recursion in Soup Sieve CSS parser lets nested pseudo-class selec

IV. Related Vulnerabilities