Bug 2349390 (CVE-2024-53382)

Summary: CVE-2024-53382 prismjs: DOM Clobbering vulnerability within the Prism library's prism-autoloader plugin
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aarif, abarbaro, amctagga, anjoseph, aoconnor, aprice, bkabrda, bniver, caswilli, cdaley, cmiranda, dhanak, dsimansk, eric.wittmann, flucifre, gmalinko, gmeno, janstey, jchui, jeder, jforrest, jhe, jkoehler, jprabhak, jwong, kaycoth, kingland, kshier, ktsao, kverlaen, lball, lchilton, lphiri, matzew, mbenjamin, mhackett, mnovotny, mpierce, nboldt, ngough, nipatil, pantinor, pcongius, pdelbell, pierdipi, pjindal, psrna, rhuss, rkubis, rstepani, sausingh, sfeifer, sostapov, stcannon, ttakamiy, vereddy, veshanka, wtam
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the prism-autoloader plugin of the Prism library. The prism-autoloader plugin uses `document.currentScript` as the base URL for dynamically loading other dependencies and, in certain circumstances, can be vulnerable to a DOM Clobbering attack. This issue could lead to Cross-site scripting (XSS) attacks on web pages that embed Prism and allow users to inject scriptless HTML elements, such as an `img` tag with a controlled `name` attribute.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2353484, 2353486, 2353487    
Bug Blocks:    

Description OSIDB Bzimport 2025-03-03 07:01:00 UTC
Prism (aka PrismJS) through 1.29.0 allows DOM Clobbering (with resultant XSS for untrusted input that contains HTML but does not directly contain JavaScript), because document.currentScript lookup can be shadowed by attacker-injected HTML elements.