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

- 種別: advisory
- 重大度: high
- 関連技術: nodejs, vue
- CVE: CVE-2026-144292
- 公開日時: 2026-12-03T23:56:52.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-hrxw-jjj6-2g2j)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-hrxw-jjj6-2g2j

影響: npm:dompurify < 3.5.0 → 3.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…