Bug 2522237 - CVE-2026-65904 forgejo: DOMPurify: Cross-Site Scripting via unsanitized DOM elements from different realms [epel-all]
Summary: CVE-2026-65904 forgejo: DOMPurify: Cross-Site Scripting via unsanitized DOM e...
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: forgejo
Version: epel10
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Fedora Infrastructure SIG
QA Contact:
URL:
Whiteboard: {"flaws": ["5856cc6c-c6d0-4273-807f-e...
Depends On:
Blocks: CVE-2026-65904
TreeView+ depends on / blocked
 
Reported: 2026-08-24 17:41 UTC by Ganesh
Modified: 2026-08-24 17:41 UTC (History)
5 users (show)

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


Attachments (Terms of Use)

Description Ganesh 2026-08-24 17:41:30 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 through 3.3.3 fails to sanitize DOM elements passed via IN_PLACE mode when the element originates from a different window/realm (e.g., an iframe's contentDocument). A cross-realm instanceof check in the private _isNode() function returns false for foreign-realm nodes, causing DOMPurify to stringify the element (yielding '[object HTMLDivElement]'), silently reset IN_PLACE to false, and return the unsanitized element unchanged with any XSS payloads intact. The vendor considers this an edge case outside DOMPurify's threat model and, at time of publication, no fix was planned.


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