{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-23647","published":"2022-02-18T15:15:07.740000Z","last_modified":"2026-06-17T04:30:33.493000Z","status":"Modified","cvss":{"version":"3.1","score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-79"],"cpes":[{"criteria":"cpe:2.3:a:prismjs:prism:*:*:*:*:*:node.js:*:*","part":"a","vendor":"prismjs","product":"prism","version_start_including":"1.14.0","version_end_excluding":"1.27.0"}],"cpes_truncated":false,"vendors":["prismjs"],"products":["prismjs/prism"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.01476,"percentile":0.74161,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-3949-f494-cm99","ecosystem":"npm","name":"prismjs","purl":"pkg:npm/prismjs","ranges":[{"introduced":"1.14.0","fixed":"1.27.0"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":52,"links":{"html_es":"/es/cve/CVE-2022-23647/","html_en":"/en/cve/CVE-2022-23647/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-23647","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-23647"},"untrusted":{"vendor_name":"Prismjs","product_name":"Prism","desc_en":"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.","affected":[{"untrusted_vendor":"PrismJS","untrusted_product":"prism","versions":[]}],"references":[{"url":"https://github.com/PrismJS/prism/commit/e002e78c343154e1c0ddf9d6a0bb85689e1a5c7c","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/PrismJS/prism/pull/3341","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/PrismJS/prism/security/advisories/GHSA-3949-f494-cm99","tags":["Third Party Advisory"]}]}}