← 漏洞与更新

高危漏洞公告JavaScript / Node.jsVue.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、Vue.js。CVE:CVE-2026-144292。