Bug 2520440 - CVE-2026-65902 jupyterlab: DOMPurify: Sanitization bypass via hook manipulation [fedora-all]
Summary: CVE-2026-65902 jupyterlab: DOMPurify: Sanitization bypass via hook manipulati...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: jupyterlab
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Lumír Balhar
QA Contact:
URL:
Whiteboard: {"flaws": ["20329ac4-c7a7-4183-80f7-4...
Depends On:
Blocks: CVE-2026-65902
TreeView+ depends on / blocked
 
Reported: 2026-08-20 16:01 UTC by Ganesh
Modified: 2026-10-14 11:58 UTC (History)
3 users (show)

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


Attachments (Terms of Use)

Description Ganesh 2026-08-20 16:01:29 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 Lumír Balhar 2026-10-12 08:35:54 UTC
Fixed in rawhide, f45 and older still affected.

Comment 2 Lumír Balhar 2026-10-14 11:58:15 UTC
I've just created an update for Jupyterlab (to 4.6.3) and related packages for F45 which is going to fix this vulnerability.


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