justhtmlに認証なしでサービス運用妨害される脆弱性 特殊な数字で解析停止
Summary
justhtmlの3.17.0より前の版には、HTML内の数値文字参照に非ASCIIのUnicode数字が含まれると解析が異常終了する脆弱性があります。認証は不要で、HTMLのテキストや属性に「&#²」のような値を入れるだけでJustHTML()やstream()の解析が止まるおそれがあります。修正版の3.17.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.
justhtmlの3.17.0より前の版には、HTML内の数値文字参照に非ASCIIのUnicode数字が含まれると解析が異常終了する脆弱性があります。認証は不要で、HTMLのテキストや属性に「&#²」のような値を入れるだけでJustHTML()やstream()の解析が止まるおそれがあります。修正版の3.17.0に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| EmilStenstromjusthtml |
< 3.17.0→ 3.17.0 |
3.17.0 |
Original description The description as published by the source.
justhtml before 3.17.0 contains a denial of service vulnerability in decode_entities_in_text that allows unauthenticated attackers to crash parsing via non-ASCII Unicode digits in numeric character references. Attackers can submit a payload like &#² in HTML text or attributes, causing an uncaught ValueError from int() that aborts JustHTML() and stream() parsing.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory github.com
- advisory nvd.nist.gov
- web github.com