Skip to content
Medium 6.1

DOMPurify before 3.4.18 SAFE_FOR_TEMPLATES Bypass Leading to XSS

CVE-2026-140391 First seen on SecPulse

Affected packages

PackageAffected → Fixed
cure53DOMPurify
< 3.4.18→ 3.4.18
Original description The description as published by the source.

DOMPurify before 3.4.18 contains a SAFE_FOR_TEMPLATES bypass that allows attackers to smuggle template expressions past sanitization using nested form elements or orphaned end tags. When the sanitized output is reparsed via innerHTML, split braces merge into live {{...}} expressions that Vue or AngularJS evaluate, executing attacker JavaScript in victims' browsers.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details