Soup Sieveに信頼できないHTMLで処理が長時間止まる脆弱性
Summary
Soup Sieveは、Beautiful Soup 4向けのCSSセレクターライブラリーです。子孫結合子を含むセレクターを、深くネストされた攻撃者の影響を受けるHTMLやXMLに対して使うと、処理が多項式時間で膨らみ、サービス拒否の状態になるおそれがあります。修正版は4.0で、利用しているアプリケーションのバージョンを確認し、更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Soup Sieveは、Beautiful Soup 4向けのCSSセレクターライブラリーです。子孫結合子を含むセレクターを、深くネストされた攻撃者の影響を受けるHTMLやXMLに対して使うと、処理が多項式時間で膨らみ、サービス拒否の状態になるおそれがあります。修正版は4.0で、利用しているアプリケーションのバージョンを確認し、更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| facelessusersoupsieve | — | Not listed |
| pipsoupsieve |
< 4.0.0→ 4.0.0 |
4.0.0 |
| PyPIsoupsieve |
< 4.0.0→ 4.0.0 |
4.0.0 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- BellSoft Alpaquita BELL-CVE-2026-126190 py3-soupsieve Fix available
- Debian DEBIAN-CVE-2026-126190 soupsieve Fix available
- Ubuntu UBUNTU-CVE-2026-126190 soupsieve No fixed version in this record
Original description The description as published by the source.
Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4. Prior to 4.0, Soup Sieve repeatedly walks the same ancestors while matching descendant combinators, and each additional descendant combinator raises the polynomial degree of the work on deeply nested attacker-influenced HTML or XML. Applications using selectors such as section div div through select(), select_one(), or Beautiful Soup CSS APIs against untrusted documents can have a worker occupied for seconds or minutes, while trusted-only document processing is not affected. Selectors compiled with NOCACHE continue to use the old uncached behavior. This issue is fixed in version 4.0.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- patch github.com
- web github.com
- web github.com