Read the docs
TI-2022-07699 Aliases CVE-2022-23647GHSA-3949-f494-cm99

Cross-site Scripting in Prism

Priority LOW 36CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
High
Impact type
Cross-site scripting
Confidentiality · integrity · availability
High · Low · Low
Fix status
Partial Red Hat: 2 fixed, 4 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.

Summary

Prism is a syntax highlighting library. Starting with version 1.14.0 and prior to version 1.27.0, Prism's command line plugin can be used by attackers to achieve a cross-site scripting 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. This bug has been fixed in v1.27.0. As a workaround, do not use the command line plugin on untrusted inputs, or sanitize all code blocks (remove all HTML code text) from all code blocks that use the command line plugin.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.01425 73rd percentileScored 2026-11-07
Fix Partial prism (PrismJS): 1.27.0prismjs (npm): 1.27.0Red Hat: 2 advisoriesRed Hat: 2 fixed, 4 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
PrismJSprism1.14.0 to before 1.27.01.27.0Patch availableCNA
—prismjs (npm)1.14.0 to before 1.27.01.27.0Patch availableGHSA-3949-f494-cm99
  • prism VendorPrismJS Affected 1.14.0 to before 1.27.0 Fixed in 1.27.0 Patch available CNA
  • prismjs (npm) Vendor— Affected 1.14.0 to before 1.27.0 Fixed in 1.27.0 Patch available GHSA-3949-f494-cm99

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:prismjs:prism:*:*:*:*:*:node.js:*:*1.14.0 to before 1.27.0VulnerablePrismJS
  • cpe:2.3:a:prismjs:prism:*:*:*:*:*:node.js:*:* Versions 1.14.0 to before 1.27.0 Vulnerable ·PrismJS

Remediation

  • Fix · CNA prism (PrismJS) Fixed in 1.27.0
  • Fix · GHSA-3949-f494-cm99 prismjs (npm) Fixed in 1.27.0 Advisory →

Red Hat 2 advisories

  • RHSA-2022:8524 Released 2022-11-17 · Red Hat rating Important
    Red Hat Data Grid 8.4.0 security update
    • Red Hat Data Grid 8.4.0
  • RHSA-2022:6835 Released 2022-10-06 · Red Hat rating Important
    Service Registry (container images) release and security update [2.3.0.GA]
    • RHINT Service Registry 2.3.0 GA

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
OpenShift Developer Tools and ServicesAffectedNo fix yet: Fix deferred
Red Hat 3scale API Management Platform 2AffectedNo fix yet
Red Hat Integration Service RegistryAffectedNo fix planned: Out of support scope
Red Hat OpenShift GitOpsAffectedNo fix planned: Will not fix
RHINT Service Registry 2.3.0 GAFixed RHSA-2022:6835
Red Hat Data Grid 8.4.0Fixed RHSA-2022:8524
Not affected: 17 products
  • Migration Toolkit for Virtualization
  • OpenShift Service Mesh 2.0
  • OpenShift Service Mesh 2.1
  • Red Hat A-MQ Online
  • Red Hat Advanced Cluster Security 3
  • Red Hat Ansible Automation Platform 2
  • Red Hat Ceph Storage 3
  • Red Hat Ceph Storage 4
  • Red Hat Ceph Storage 5
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • Red Hat Integration Camel K 1
  • Red Hat Integration Camel Quarkus 1
  • Red Hat Integration Data Virtualisation Operator
  • Red Hat OpenShift Container Platform 3.11
  • Red Hat OpenShift Container Platform 4
  • Red Hat Storage 3

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-23647
  2. 2026-10-03 Alias added: GHSA-3949-f494-cm99

References

  • TI-2024-35787 Code injection in PrismJS Prism CVSS 3.1MEDIUM 5.4
  • TI-2021-06039 Regular expression denial of service (ReDoS) in prismjs CVSS 3.1HIGH 7.5
  • TI-2021-12391 Regular Expression Denial of Service (ReDoS) in Prism CVSS 3.1HIGH 7.4
  • TI-2021-02732 Inefficient Regular Expression Complexity in prismjs/prism CVSS 3.1MEDIUM 6.5

Sources