CVE-2026-65899
Published:July 23, 2026
Updated:July 24, 2026
DOMPurify 3.0.0 before 3.4.9 does not reset the retained Trusted Types policy when clearConfig() is called, so a DOMPurify instance reused across trust boundaries stays bound to a previously supplied TRUSTED_TYPES_POLICY. A later caller that requests RETURN_TRUSTED_TYPE output receives a TrustedHTML object created by the old (potentially unsafe) policy rather than a clean default, which can lead to script execution at a Trusted Types sink. Passing TRUSTED_TYPES_POLICY: null on the later call also does not clear the retained policy.
Affected Packages
dompurify (CDN_JS):
Affected version(s) >=0.7.0 <3.4.9Fix Suggestion:
Update to version 3.4.9https://github.com/cure53/DOMPurify.git (GITHUB):
Affected version(s) >=v0.3 <3.4.9Fix Suggestion:
Update to version 3.4.9dompurify (NPM):
Affected version(s) >=0.4.0 <3.4.9Fix Suggestion:
Update to version 3.4.9dompurify (NPM):
Affected version(s) >=3.0.0 <3.4.9Fix Suggestion:
Update to version 3.4.9Related Resources (4)
Do you need more information?
Contact UsCVSS 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)
Protection Mechanism Failure
EPSS
Base Score:
0.21