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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2020-26237— Prototype Pollution in highlight.js

Quick assessment

Affected
highlightjs highlight.js
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.

Highlightjs是Highlightjs团队的一个由JavaScript编写的语法高亮工具。该软件在浏览器和服务器上均可使用,不依赖于任何框架,并且具有自动语言检测功能。 Highlightjs 9.18.2版本和10.1.2之前版本存在安全漏洞,该漏洞源于如果允许用户通过解析Markdown代码块(或类似代码)将自定义HTML代码块插入您的页面/应用程序,并且不过滤用户可以为您提供的语言名称,则可能会受到攻击。

CVSS 5.8 · Medium EPSS 1.33% · P71

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2020-26237

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
Prototype Pollution in highlight.js
Source: CVE Program / CVE List V5
Vulnerability Description
Highlight.js is a syntax highlighter written in JavaScript. Highlight.js versions before 9.18.2 and 10.1.2 are vulnerable to Prototype Pollution. A malicious HTML code block can be crafted that will result in prototype pollution of the base object's prototype during highlighting. If you allow users to insert custom HTML code blocks into your page/app via parsing Markdown code blocks (or similar) and do not filter the language names the user can provide you may be vulnerable. The pollution should just be harmless data but this can cause problems for applications not expecting these properties to exist and can result in strange behavior or application crashes, i.e. a potential DOS vector. If your website or application does not render user provided data it should be unaffected. Versions 9.18.2 and 10.1.2 and newer include fixes for this vulnerability. If you are using version 7 or 8 you are encouraged to upgrade to a newer release.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
对假设不可变数据的修改(MAID)
Source: CVE Program / CVE List V5
Vulnerability Title
Highlightjs 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Highlightjs是Highlightjs团队的一个由JavaScript编写的语法高亮工具。该软件在浏览器和服务器上均可使用,不依赖于任何框架,并且具有自动语言检测功能。 Highlightjs 9.18.2版本和10.1.2之前版本存在安全漏洞,该漏洞源于如果允许用户通过解析Markdown代码块(或类似代码)将自定义HTML代码块插入您的页面/应用程序,并且不过滤用户可以为您提供的语言名称,则可能会受到攻击。
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
highlightjs highlight.js < 9.18.2 -

II. Public POCs for CVE-2020-26237

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

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2020-26237

请登录查看更多情报信息。

Patches & Fixes for CVE-2020-26237 (2)

Vendor Advisories for CVE-2020-26237 (2)

Mailing List Discussions for CVE-2020-26237 (1)

Other References for CVE-2020-26237 (1)

IV. Related Vulnerabilities