Bug 2520473 - CVE-2026-65899 forgejo: DOMPurify: Client-side arbitrary code execution due to improper Trusted Types policy reset [fedora-all]
Summary: CVE-2026-65899 forgejo: DOMPurify: Client-side arbitrary code execution due t...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: forgejo
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Fedora Infrastructure SIG
QA Contact:
URL:
Whiteboard: {"flaws": ["4b55b240-fa42-4bca-a12b-4...
Depends On:
Blocks: CVE-2026-65899
TreeView+ depends on / blocked
 
Reported: 2026-08-20 16:04 UTC by Ganesh
Modified: 2026-08-20 16:04 UTC (History)
5 users (show)

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


Attachments (Terms of Use)

Description Ganesh 2026-08-20 16:04:12 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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.