CVE-2020-26237
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
highlight.jsnpm | < 9.18.2 | 9.18.2 |
highlight.jsnpm | >= 10.0.0, < 10.1.2 | 10.1.2 |
Affected products
5cpe:2.3:a:highlightjs:highlight.js:*:*:*:*:*:node.js:*:*+ 1 more
- cpe:2.3:a:highlightjs:highlight.js:*:*:*:*:*:node.js:*:*range: <9.18.2
- (no CPE)range: < 9.18.2
- cpe:2.3:a:oracle:mysql_enterprise_monitor:*:*:*:*:*:*:*:*Range: <=8.0.30
Patches
Vulnerability mechanics
References
8- github.com/highlightjs/highlight.js/commit/7241013ae011a585983e176ddc0489a7a52f6bb0nvdPatchThird Party AdvisoryWEB
- github.com/highlightjs/highlight.js/pull/2636nvdPatchThird Party AdvisoryWEB
- github.com/advisories/GHSA-vfrc-7r7c-w9mxghsaADVISORY
- github.com/highlightjs/highlight.js/security/advisories/GHSA-vfrc-7r7c-w9mxnvdMitigationThird Party AdvisoryWEB
- lists.debian.org/debian-lts-announce/2020/12/msg00041.htmlnvdMailing ListThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2020-26237ghsaADVISORY
- www.npmjs.com/package/highlight.jsnvdThird Party AdvisoryWEB
- www.oracle.com/security-alerts/cpujul2022.htmlnvdThird Party AdvisoryWEB
News mentions
0No linked articles in our index yet.