CVE-2020-26237

Summary

CVECVE-2020-26237
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2020-11-24 23:15:00 UTC
Updated2022-10-19 13:49:00 UTC
DescriptionHighlight.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.

Risk And Classification

Problem Types: CWE-471

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Debian Debian Linux 9.0 All All All
Application Highlightjs Highlight.js All All All All
Application Highlightjs Highlight.js All All All All
Application Oracle Mysql Enterprise Monitor All All All All

References

ReferenceSourceLinkTags
use null prototype objects for languages/aliases by night · Pull Request #2636 · highlightjs/highlight.js · GitHub MISC github.com Patch, Third Party Advisory
[SECURITY] [DLA 2511-1] highlight.js security update MLIST lists.debian.org
(parser) use null prototype objects for languages/aliases (#2636) · highlightjs/highlight.js@7241013 · GitHub MISC github.com Patch, Third Party Advisory
Prototype Pollution · Advisory · highlightjs/highlight.js · GitHub CONFIRM github.com Mitigation, Third Party Advisory
Oracle Critical Patch Update Advisory - July 2022 N/A www.oracle.com
highlight.js MISC www.npmjs.com Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 983099 Nodejs (npm) Security Update for highlight.js (GHSA-vfrc-7r7c-w9mx)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report