VDB

CVE-2020-26237

CVE-2020-26237 PUBLISHED CVSS 5.8 MEDIUM

Prototype Pollution in highlight.js

Reported by github_m · Published November 24, 2020

highlight.js is fixed in 10.1.2 and 9.18.2 (npm)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
highlight.jsnpm10.1.2, 9.18.2
mysql_enterprise_monitororacle8.0.30

Risk scores

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

Affected products

VendorProductVersions
highlightjshighlight.js< 9.18.2, >= 10.0.0, < 10.1.2
highlightjshighlight.js0, 10.0.0
npmhighlight.js0, 10.1.0

Timeline

  • Nov 24, 2020 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Aug 4, 2024 CVE Updated
  • Mar 9, 2026 Security Advisory (8 in total, the first dated here)
  • Sep 1, 2026 Coalition ESS Score
  • Nov 22, 2026 Distribution Patch (7 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2020-26237
vulnetix vdb fixes CVE-2020-26237

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-26237/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›