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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-126189— Soup Sieve: Quadratic-time denial of service when matching `:has()`

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 选择器库。在 4.0.1 版本之前,Soup Sieve 在处理 伪类时,会对每个候选元素反复搜索其后代子树,并且对于包含 的父元素,会为每个子元素重复重新评估该条件。这导致在面对深度嵌套或宽度较大、且由攻击者可控的 HTML 或 XML 文档时,匹配过程呈现二次方复杂度(quadratic matching)。 使用常规固定选择器通过 、 或 Beautiful Soup 的 CSS API 处理不可信文档的应用程序,可能会因

CVSS 5.3 · Medium EPSS 0.30% · P23

Possible ATT&CK Techniques 1 AI

T1499 · Endpoint Denial of Service

Affected Version Matrix 1

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

I. Basic Information for CVE-2026-126189

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: Quadratic-time denial of service when matching `:has()`
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 4.0.1, Soup Sieve repeatedly searches descendant subtrees for each candidate evaluated by :has() and repeatedly reevaluates a parent containing :has(> ...) for each child, causing quadratic matching on deeply nested or wide attacker-influenced HTML or XML. Applications using ordinary fixed selectors through select(), select_one(), or Beautiful Soup CSS APIs against untrusted documents can have a worker occupied for seconds or minutes, while applications that process only trusted documents are not affected. Selectors compiled with NOCACHE continue to use the old uncached behavior. This issue is fixed in version 4.0.1.
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:L
Source: CVE Program / CVE List V5
Vulnerability Type
算法复杂性
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
facelessuser soupsieve < 4.0.1 -

II. Public POCs for CVE-2026-126189

# 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-126189

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

Patches & Fixes for CVE-2026-126189 (3)

Vendor Advisories for CVE-2026-126189 (1)

Vendor Pages for CVE-2026-126189 (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-126191 7.5 HIGH Soup Sieve: Exponential ReDoS in selector compilation via \9-run in CSS_ESCAPES/IDENTIFIER
CVE-2026-126192 6.3 MEDIUM Soup Sieve: General sibling combinator inside :has() matches untrusted HTML in quadratic t
CVE-2026-126193 5.3 MEDIUM Soup Sieve: Uncontrolled recursion in Soup Sieve CSS parser lets nested pseudo-class selec

IV. Related Vulnerabilities