← 脆弱性・アップデート

重要脆弱性アドバイザリJavaScript / Node.js

DOMPurify SAFE_FOR_TEMPLATES bypass: nested <form> makes a template expression reassemble when sanitized output is reparsed

影響

パッケージ影響する版修正版
npm:dompurify< 3.5.03.5.0

With SAFE_FOR_TEMPLATES: true, DOMPurify 3.4.18 returns a string that contains no {{ or }}, yet becomes a live {{…}} expression as soon as it is assigned to innerHTML. A template engine that compiles that DOM (verified with Vue 3 in-DOM templates and AngularJS 1.8.3) evaluates the attacker's expression, giving arbitrary JavaScript execution. The attacker controls only the markup passed to sanitize(). The only configuration required is SAFE_FOR_TEMPLATES: true, which is a protective option used…

GitHub Advisory Databaseで読む

2026/12/04 08:56、GitHub Advisory Databaseが「DOMPurify SAFE_FOR_TEMPLATES bypass: nested <form> makes a template expression reassemble when sanitized output is reparsed」を公開しました (種別: 脆弱性アドバイザリ)。重大度は「重要」(high) です。関連する技術: JavaScript / Node.js。CVE: CVE-2026-144292。