Bug 2520490 - CVE-2026-65902 fbthrift: DOMPurify: Sanitization bypass via hook manipulation [epel-all]
Summary: CVE-2026-65902 fbthrift: DOMPurify: Sanitization bypass via hook manipulation...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: fbthrift
Version: epel10
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Michel Lind
QA Contact:
URL:
Whiteboard: {"flaws": ["20329ac4-c7a7-4183-80f7-4...
Depends On:
Blocks: CVE-FalsePositive-Unshipped CVE-2026-65902
TreeView+ depends on / blocked
 
Reported: 2026-08-20 16:13 UTC by Ganesh
Modified: 2026-08-21 21:08 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-08-21 21:08:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ganesh 2026-08-20 16:13:33 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 before 3.4.7 (affected versions <= 3.4.5) passes direct references to the module-level DEFAULT_ALLOWED_TAGS and DEFAULT_ALLOWED_ATTR sets to the uponSanitizeElement and uponSanitizeAttribute hooks via data.allowedTags / data.allowedAttributes when sanitize is called without an explicit cfg.ALLOWED_TAGS / cfg.ALLOWED_ATTR array. A hook that mutates these fields permanently widens the default allow-lists for the lifetime of the DOMPurify instance, so all subsequent default-config sanitize calls inherit the widened defaults and attacker payloads using the poisoned tag/attribute name survive sanitization. removeAllHooks(), clearConfig(), and passing a fresh cfg do not recover the state; only constructing a new DOMPurify instance does.

Comment 1 Michel Lind 2026-08-21 21:08:42 UTC
This CVE is in a JavaScript/NodeJS package; the JavaScript here is not shipped in the binary RPMs.


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