CVE-2020-26237
Last modified
CVE-2020-26237 is a high-severity vulnerability rated 8.7/10 on the CVSS scale. 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. EPSS estimates a 1.30% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Highlightjs | Highlight.Js | < 9.18.2 |
| Highlightjs | Highlight.Js | >= 10.1.0, < 10.1.2 |
| Debian | Debian Linux | 9.0 |
| Oracle | Mysql Enterprise Monitor | <= 8.0.30 |
References
- https://github.com/highlightjs/highlight.js/commit/7241013ae011a585983e176ddc0489a7a52f6bb0Patch, Third Party Advisory
- https://github.com/highlightjs/highlight.js/pull/2636Patch, Third Party Advisory
- https://github.com/highlightjs/highlight.js/security/advisories/GHSA-vfrc-7r7c-w9mxMitigation, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/12/msg00041.htmlMailing List, Third Party Advisory
- https://www.npmjs.com/package/highlight.jsThird Party Advisory
- https://www.oracle.com/security-alerts/cpujul2022.htmlThird Party Advisory
- https://github.com/highlightjs/highlight.js/commit/7241013ae011a585983e176ddc0489a7a52f6bb0Patch, Third Party Advisory
- https://github.com/highlightjs/highlight.js/pull/2636Patch, Third Party Advisory
- https://github.com/highlightjs/highlight.js/security/advisories/GHSA-vfrc-7r7c-w9mxMitigation, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/12/msg00041.htmlMailing List, Third Party Advisory
- https://www.npmjs.com/package/highlight.jsThird Party Advisory
- https://www.oracle.com/security-alerts/cpujul2022.htmlThird Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2020-26237?
How severe is CVE-2020-26237?
How do I fix CVE-2020-26237?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2020
- CVE-2020-26231October is a free, open-source, self-hosted CMS platform bas…6.7
- CVE-2020-26232Jupyter Server before version 1.0.6 has an Open redirect vul…5.4
- CVE-2020-26233Git Credential Manager Core (GCM Core) is a secure Git crede…7.3
- CVE-2020-26234Opencast before versions 8.9 and 7.9 disables HTTPS hostname…4.8
- CVE-2020-26235In Rust time crate from version 0.2.7 and before version 0.2…5.3
- CVE-2020-26236In ScratchVerifier before commit a603769, an attacker can hi…7.5
- CVE-2020-26238Cron-utils is a Java library to parse, validate, migrate cro…8.1
- CVE-2020-26239Scratch Addons is a WebExtension that supports both Chrome a…5.4
- CVE-2020-2624Vulnerability in the Enterprise Manager Base Platform produc…6
- CVE-2020-26240Go Ethereum, or "Geth", is the official Golang implementatio…7.5
- CVE-2020-26241Go Ethereum, or "Geth", is the official Golang implementatio…7.1
- CVE-2020-26242Go Ethereum, or "Geth", is the official Golang implementatio…7.5
Are you affected by CVE-2020-26237?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
