Vulnerabilities/

Cross-site Scripting in Prism

Severity:
High

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:

References

Related Issues

Tags:
npm
prismjs
Anything's wrong? Let us know Last updated on February 03, 2023

This issue is available in SmartScanner Professional

See Pricing