GHSA-3949-f494-cm99 · Severity: high · Ecosystem: npm — Cross-site Scripting in Prism
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.
Conclusion & alert: CVE-2022-23647 is rated Moderate Risk (53.4/100): CVSS High severity, with medium exploitation likelihood (EPSS 0.51%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-06 | 0.39% | 0.51% | +0.11% |
| 2 | 2026-03-04 | 0.30% | 0.39% | +0.09% |
| 3 | 2026-03-03 | — | 0.30% | — |
Full EPSS history (10 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 7.5 | 3.1 | HIGH |
|
1.6 | 5.3 | [email protected] |
| 6.1 | 3.1 | MEDIUM |
|
2.8 | 2.7 | [email protected] |
| 4.3 | 2.0 | MEDIUM |
|
8.6 | 2.9 | [email protected] |
GHSA-3949-f494-cm99 · Severity: high · Ecosystem: npm — Cross-site Scripting in Prism
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2022-23647 not yet assigned priority: Debian including 1 source packages (node-prismjs), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2022-23647 |
redhat
|
high | — | https://access.redhat.com/security/cve/CVE-2022-23647 |
ubuntu
|
medium | CVE-2022-23647 medium priority: Ubuntu including 1 source packages (node-prismjs), 13 status rows across 13 suites (focal, impish, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): not-affected 6, ignored 4, needs-triage 2, released 1. | https://ubuntu.com/security/CVE-2022-23647 |
| URL | Tags |
|---|---|
| https://github.com/PrismJS/prism/commit/e002e78c343154e1c0ddf9d6a0bb85689e1a5c7c | Patch Third Party Advisory |
| https://github.com/PrismJS/prism/pull/3341 | Patch Third Party Advisory |
| https://github.com/PrismJS/prism/security/advisories/GHSA-3949-f494-cm99 | Third Party Advisory |