Bug 2522247 - CVE-2026-65904 nextcloud: DOMPurify: Cross-Site Scripting via unsanitized DOM elements from different realms [epel-all]
Summary: CVE-2026-65904 nextcloud: DOMPurify: Cross-Site Scripting via unsanitized DOM...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: nextcloud
Version: epel10
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Andrew Bauer
QA Contact: Fedora Extras Quality Assurance
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:50 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-08-24 17:50:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ganesh 2026-08-24 17:41:55 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.

Comment 1 Andrew Bauer 2026-08-24 17:50:19 UTC
This bug is not valid. As of this writing, the current Nextcloud 34.0.3 release contain DOMPurify 3.4.13 which does not contain this CVE.

See:
https://github.com/nextcloud/server/blob/v34.0.3/package-lock.json#L6512


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