Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-140391
Published:December 01, 2026
Updated:December 02, 2026
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 Packages
dompurify (CDN_JS):
Affected version(s) >=3.0.0 <3.4.18 || >=0.7.0 <3.4.18 || >=1.0.0 <3.4.18 || >=2.0.0 <3.4.18
Fix Suggestion:
Update to version 3.4.18
https://github.com/cure53/DOMPurify.git (GITHUB):
Affected version(s) >=0.1 <3.4.18 || >=1.0.0 <3.4.18 || >=2.0.0 <3.4.18 || >=3.0.0 <3.4.18
Fix Suggestion:
Update to version 3.4.18
dompurify (NPM):
Affected version(s) >=3.0.0 <3.4.18 || >=0.4.0 <3.4.18 || >=1.0.0 <3.4.18 || >=2.0.0 <3.4.18
Fix Suggestion:
Update to version 3.4.18
Do you need more information?
Contact Us
CVSS v4
Base Score:
5.1
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
ACTIVE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
LOW
Subsequent System Integrity
LOW
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.1
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Input During Web Page Generation
EPSS
Base Score:
0.51