cure53のDOMPurifyにおける複数の脆弱性
| Title |
cure53のDOMPurifyにおける複数の脆弱性
|
| Summary |
DOMPurifyはHTML、MathML、およびSVG用のDOM専用のクロスサイトスクリプティングサニタイザです。バージョン3.4.0以前では、関数ベースのADD_TAGSを使用する場合にFORBID_TAGSとFORBID_ATTRの処理に不整合がありました。コミットc361baaでは1214行目でFORBID_ATTRのために早期終了が追加されましたが、同じ修正はFORBID_TAGSには適用されませんでした。1118行目から1123行目にかけて、EXTRA_ELEMENT_HANDLING.tagCheckがtrueを返すと短絡評価によりFORBID_TAGSのチェックが完全にスキップされます。このため、禁止された要素が属性を保ったままサニタイズをすり抜けることが可能になっていました。バージョン3.4.0でこの問題は修正されました。
|
| Possible impacts |
当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 さらに、当該ソフトウェアは停止しません。 そして、この脆弱性を悪用した攻撃により、他のソフトウェアにも影響が及ぶ可能性があります。 |
| Solution |
正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date |
April 23, 2026, midnight |
| Registration Date |
April 30, 2026, 11:01 a.m. |
| Last Update |
April 30, 2026, 11:01 a.m. |
|
CVSS3.0 : 警告
|
| Score |
6.1
|
| Vector |
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected System
| cure53 |
|
DOMPurify 3.4.0 未満
|
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
| No |
Changed Details |
Date of change |
| 1 |
[2026年04月30日] 掲載 |
April 30, 2026, 11:01 a.m. |
NVD Vulnerability Information
CVE-2026-41240
| Summary |
DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Versions prior to 3.4.0 have an inconsistency between FORBID_TAGS and FORBID_ATTR handling when function-based ADD_TAGS is used. Commit c361baa added an early exit for FORBID_ATTR at line 1214. The same fix was not applied to FORBID_TAGS. At line 1118-1123, when EXTRA_ELEMENT_HANDLING.tagCheck returns true, the short-circuit evaluation skips the FORBID_TAGS check entirely. This allows forbidden elements to survive sanitization with their attributes intact. Version 3.4.0 patches the issue.
|
| Publication Date |
April 24, 2026, 1:16 a.m. |
| Registration Date |
April 25, 2026, 4:06 a.m. |
| Last Update |
April 29, 2026, 11:58 p.m. |
Affected software configurations
| Configuration1 |
or higher |
or less |
more than |
less than |
| cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:* |
|
|
|
3.4.0 |
Related information, measures and tools
Common Vulnerabilities List