Description
Prism’s Command line plugin can be used by attackers to achieve an XSS attack. The Command line plugin did not properly escape its output, leading to the input text being inserted into the DOM as HTML code.
Server-side usage of Prism is not impacted. Websites that do not use the Command Line plugin are also not impacted.
Recommendation
Update the prismjs
package to the latest compatible version. Followings are version details:
- Affected version(s): >= 1.14.0, < 1.27.0
- Patched version(s): 1.27.0
References
Related Issues
- jsPDF Denial of Service (DoS) - CVE-2025-57810
- PrismJS DOM Clobbering vulnerability - CVE-2024-53382
- MailDev Remote Code Execution - CVE-2024-27448
- vxe-table prototype pollution - CVE-2024-57080
- Tags:
- npm
- prismjs
Anything's wrong? Let us know Last updated on February 03, 2023