7.5
CWE
79
Advisory Published
CVE Published
Updated

CVE-2022-23647: Cross-site Scripting in Prism

First published: Fri Feb 18 2022(Updated: )

A Cross-site scripting attack was found in Prism. The command-line plugin did not properly escape its output. This issue leads to the input text being inserted into the Document Object Model (DOM) as HTML code, which can be exploited by an attacker.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
redhat/prismjs<1.27.0
1.27.0
Prismjs Prism>=1.14.0<1.27.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is CVE-2022-23647?

    CVE-2022-23647 is a Cross-site scripting (XSS) vulnerability found in the Prism syntax highlighting library's command-line plugin.

  • How severe is CVE-2022-23647?

    CVE-2022-23647 has a severity rating of high (CVSS score 6.1).

  • Which software versions are affected by CVE-2022-23647?

    Versions of Prism's command-line plugin from 1.14.0 to 1.27.0 are affected.

  • How can an attacker exploit CVE-2022-23647?

    An attacker can exploit CVE-2022-23647 by injecting malicious code or scripts into input fields that are not properly escaped in the command-line plugin, leading to cross-site scripting attacks.

  • What is the remediation for CVE-2022-23647?

    To fix CVE-2022-23647, it is recommended to update to version 1.27.0 or later of Prism's command-line plugin.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203