Vulnerability Details : CVE-2020-26237
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.
Vulnerability category: Denial of service
Products affected by CVE-2020-26237
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
- cpe:2.3:a:oracle:mysql_enterprise_monitor:*:*:*:*:*:*:*:*
- cpe:2.3:a:highlightjs:highlight.js:*:*:*:*:*:node.js:*:*
- cpe:2.3:a:highlightjs:highlight.js:*:*:*:*:*:node.js:*:*
Exploit prediction scoring system (EPSS) score for CVE-2020-26237
0.34%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 68 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2020-26237
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
4.9
|
MEDIUM | AV:N/AC:M/Au:S/C:N/I:P/A:P |
6.8
|
4.9
|
NIST | |
8.7
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H |
2.3
|
5.8
|
NIST | |
5.8
|
MEDIUM | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:N |
1.3
|
4.0
|
GitHub, Inc. |
CWE ids for CVE-2020-26237
-
The product does not properly protect an assumed-immutable element from being modified by an attacker.Assigned by: security-advisories@github.com (Primary)
References for CVE-2020-26237
-
https://github.com/highlightjs/highlight.js/commit/7241013ae011a585983e176ddc0489a7a52f6bb0
(parser) use null prototype objects for languages/aliases (#2636) · highlightjs/highlight.js@7241013 · GitHubPatch;Third Party Advisory
-
https://www.npmjs.com/package/highlight.js
highlight.js - npmThird Party Advisory
-
https://github.com/highlightjs/highlight.js/security/advisories/GHSA-vfrc-7r7c-w9mx
Prototype Pollution · Advisory · highlightjs/highlight.js · GitHubMitigation;Third Party Advisory
-
https://github.com/highlightjs/highlight.js/pull/2636
use null prototype objects for languages/aliases by night · Pull Request #2636 · highlightjs/highlight.js · GitHubPatch;Third Party Advisory
-
https://lists.debian.org/debian-lts-announce/2020/12/msg00041.html
[SECURITY] [DLA 2511-1] highlight.js security updateMailing List;Third Party Advisory
-
https://www.oracle.com/security-alerts/cpujul2022.html
Oracle Critical Patch Update Advisory - July 2022Third Party Advisory
Jump to