Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

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

Quick assessment

Affected
PrismJS prism
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Prism是美国Prism个人开发者的一个应用软件。是一种轻量级的,可扩展的语法突出显示工具。 Prism 存在跨站脚本漏洞,该漏洞源于命令行插件没有正确地转义其输出,导致输入文本作为HTML代码插入到DOM中。Prism的服务器端使用不会受到影响。不使用命令行插件的网站也不会受到影响。

CVSS 7.5 · High EPSS 1.48% · P72
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2022-23647

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Cross-site Scripting in Prism
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5
Vulnerability Title
Prism 跨站脚本漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Prism是美国Prism个人开发者的一个应用软件。是一种轻量级的,可扩展的语法突出显示工具。 Prism 存在跨站脚本漏洞,该漏洞源于命令行插件没有正确地转义其输出,导致输入文本作为HTML代码插入到DOM中。Prism的服务器端使用不会受到影响。不使用命令行插件的网站也不会受到影响。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
PrismJS prism >= 1.14.0, < 1.27.0 -

II. Public POCs for CVE-2022-23647

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2022-23647

登录查看更多情报信息。

Patches & Fixes for CVE-2022-23647 (2)

Vendor Advisories for CVE-2022-23647 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2022-23647

No comments yet


Leave a comment