Soup Sieveに細工されたCSSセレクターで処理が止まる脆弱性
Summary
Soup Sieveの3.0より前のバージョンには、セレクターの解析で処理が極端に遅くなる脆弱性があります。信頼できない文字列を受け付けるアプリケーションでは、短い入力でも処理が止まるおそれがあります。修正版として3.0が公開されているため、利用中のバージョンを確認し、3.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の3.0より前のバージョンには、セレクターの解析で処理が極端に遅くなる脆弱性があります。信頼できない文字列を受け付けるアプリケーションでは、短い入力でも処理が止まるおそれがあります。修正版として3.0が公開されているため、利用中のバージョンを確認し、3.0以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| facelessusersoupsieve | — | Not listed |
| pipsoupsieve |
< 3.0.2→ 3.0.2 |
3.0.2 |
| PyPIsoupsieve |
< 3.0.2→ 3.0.2 |
3.0.2 |
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-126191 py3-soupsieve Fix available
- Debian DEBIAN-CVE-2026-126191 soupsieve Fix available
- Ubuntu UBUNTU-CVE-2026-126191 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 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.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- web github.com
- web github.com