Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. highlight.js
  4. ›
  5. CVE-2020-26237

CVE-2020-26237: Modification of Assumed-Immutable Data (MAID)

November 24, 2020 (updated December 31, 2020)

highlight.js is 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. and newer include fixes for this vulnerability.

References

  • nvd.nist.gov/vuln/detail/CVE-2020-26237

Code Behaviors & Features

Detect and mitigate CVE-2020-26237 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 9.18.2, all versions starting from 10.1.0 before 10.1.2

Fixed versions

  • 9.18.2
  • 10.1.2

Solution

Upgrade to versions 9.18.2, 10.1.2 or above.

Impact 6.8 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-471: Modification of Assumed-Immutable Data (MAID)

Source file

npm/highlight.js/CVE-2020-26237.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:16 +0000.