🛡️ CVE-2022-23647 on Debian — node-prismjs
Description
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.
Distribution advisory
This page covers CVE-2022-23647 as tracked by Debian, for the package node-prismjs. The fix is available in version 1.27.0+dfsg+~1.26.0-1; earlier versions remain affected.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. A user must be tricked into taking some action. The scope is changed, meaning a successful attack can affect components beyond the vulnerable one. Rated impact: confidentiality low, integrity low, availability none.
Weakness class
DEBIAN-CVE-2022-23647 is classified as CWE-79: Cross-site Scripting (XSS). User-supplied data is written into a page without escaping, so attacker script runs in the browser of anyone who views it.
Affected software
DEBIAN-CVE-2022-23647 is recorded against 1 package.
- node-prismjs (fixed in 1.27.0+dfsg+~1.26.0-1)
Timeline and source
Published on 18 February 2022 and last revised on 4 August 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
CVE-2022-23647 on other distributions
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| node-prismjs | — | 1.27.0+dfsg+~1.26.0-1 |
References
Similar Threats
- Unknown DEBIAN-CVE-2024-53382
- Unknown UBUNTU-CVE-2024-53382
- Unknown UBUNTU-CVE-2022-23647
- Unknown DEBIAN-CVE-2021-3801
- Unknown UBUNTU-CVE-2021-3801
Site Security Check
Is node-prismjs part of your stack?
DEBIAN-CVE-2022-23647 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.