#VU107489 Code Injection in prism - CVE-2024-53382


Vulnerability identifier: #VU107489

Vulnerability risk: Low

CVSSv4.0: 0.6 [CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U/U:Clear]

CVE-ID: CVE-2024-53382

CWE-ID: CWE-94

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
prism
Other software / Other software solutions

Vendor: PrismJS

Description

The vulnerability allows a remote user to execute arbitrary code on the target system.

The vulnerability exists due to Prism (aka PrismJS) 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.. A remote user can send a specially crafted request and execute arbitrary code on the target system.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

prism: 1.0.0 - 1.29.0


External links
https://gist.github.com/jackfromeast/aeb128e44f05f95828a1a824708df660
https://gist.github.com/jackfromeast/aeb128e44f05f95828a1a824708df660
https://github.com/PrismJS/prism/blob/59e5a3471377057de1f401ba38337aca27b80e03/prism.js#L226-L259


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability