# CVE-2020-26237: Prototype Pollution in highlight.js

- Severity: Medium 5.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.33%, higher than 71% of CVEs (2026-12-01)
- Published: 2020-11-24T22:58:41.000Z
- Modified: 2026-07-08T06:00:20.318Z
- Also known as: GHSA-vfrc-7r7c-w9mx
- Weaknesses: CWE-471
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- highlightjs highlight.js: < 9.18.2; >= 10.0.0, < 10.1.2; before 9.18.2; from 10.1.0 before 10.1.2
- highlight.js (npm): before 9.18.2; from 10.0.0 before 10.1.2
- debian debian_linux: 9.0
- oracle mysql_enterprise_monitor: up to 8.0.30

## Every score

- GitHub_M: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:N`
- GitHub: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:N`
- NVD: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H`
- NVD: CVSS:2.0 4.9 Medium `AV:N/AC:M/Au:S/C:N/I:P/A:P`

## References

- <https://github.com/highlightjs/highlight.js/security/advisories/GHSA-vfrc-7r7c-w9mx> (mitigation, third-party-advisory, web)
- <https://github.com/highlightjs/highlight.js/pull/2636> (patch, third-party-advisory, web)
- <https://www.npmjs.com/package/highlight.js> (third-party-advisory, web)
- <https://github.com/highlightjs/highlight.js/commit/7241013ae011a585983e176ddc0489a7a52f6bb0> (patch, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2020/12/msg00041.html> (mailing-list, third-party-advisory, web)
- <https://www.oracle.com/security-alerts/cpujul2022.html> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-26237> (advisory)
- <https://github.com/highlightjs/highlight.js> (package)

## Sources

- CVE List: [CVE-2020-26237](https://www.cve.org/CVERecord?id=CVE-2020-26237), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-vfrc-7r7c-w9mx](https://github.com/advisories/GHSA-vfrc-7r7c-w9mx), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-26237](https://nvd.nist.gov/vuln/detail/CVE-2020-26237), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-26237 · Whole record: https://cve.day/CVE-2020-26237.json · Rebuilt by cve.day 2026-11-25T22:57:55.946Z
