警戒
DOMPurify SAFE_FOR_TEMPLATES bypass lets template expressions reassemble and run arbitrary JavaScript
CVE-2026-144292
Websites that clean user posts with it can have outside commands run on them.
- CVE
- CVE-2026-144292(新しいタブで開きます)
- スコア
- CVSS 7.6
- 初確認
7.6
対処法
Update DOMPurify to 3.5.0 or later.
要約
With the SAFE_FOR_TEMPLATES option, DOMPurify can return markup whose braces merge when it is parsed again, so a template engine can run attacker JavaScript. Web apps using DOMPurify versions before 3.5.0 are affected.
攻撃コード公開済み
該当する条件
- SAFE_FOR_TEMPLATES: true set
- Sanitized output parsed again via innerHTML
- A template engine such as Vue 3 in-DOM templates or AngularJS 1.8.3 compiles the reparsed DOM
製品別のインシデント: DOMPurify
勧告を読む · github.com(新しいタブで開きます)
- セキュリティ勧告: github.com(新しいタブで開きます)
- CVE レコード: cve.org(新しいタブで開きます)