Bug 2506428 (CVE-2026-65899) - CVE-2026-65899 dompurify: DOMPurify: Client-side arbitrary code execution due to improper Trusted Types policy reset
Summary: CVE-2026-65899 dompurify: DOMPurify: Client-side arbitrary code execution due...
Keywords:
Status: NEW
Alias: CVE-2026-65899
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2520451 2520455 2520457 2520464 2520473 2520478 2520520 2520523 2520524 2520525 2520526 2520530 2520453 2520459 2520476 2520479 2520480 2520481 2520519 2520522 2520527 2520528 2520531 2520532
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-23 14:01 UTC by OSIDB Bzimport
Modified: 2026-08-31 17:35 UTC (History)
92 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-23 14:01:32 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.