CVE-2026-140391
JSON

5.1medium

DOMPurify before 3.4.18 SAFE_FOR_TEMPLATES Bypass Leading to XSS

Severity
5.1medium CVSS:4.0 by VulnCheck
Published
Last changed
Assigned by
VulnCheck

Description

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.

Affected

Product or packageVersionsReported by
cure53 DOMPurifybefore 3.4.18
Not affected: 3.4.18
CVE List

All scores

VulnCheck5.1medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
VulnCheck6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

References

Sources

SourceRecordLicence
CVE ListCVE-2026-140391 changed 2026-12-01CVE Terms of Use
NVDCVE-2026-140391 changed 2026-12-01Public domain