cve.bz

CVE-2020-26237

8.7 highEPSS 1.3%Fix available

High (8.7). EPSS 1.3% estimated probability of exploitation activity in the next 30 days. Fixed in highlight.js 10.1.2, 9.18.2.

On this page
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.

Severity

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
EPSS
1.3% (unchanged from 1.3% a week ago; 1.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 72nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-471 Modification of Assumed-Immutable Data (MAID)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-26237 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-26237?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-26237?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-26237 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
highlightjs:highlight.jsbefore 9.18.2
highlightjs:highlight.jsfrom 10.1.0 before 10.1.2
debian:debian_linux9.0
oracle:mysql_enterprise_monitorthrough 8.0.30

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-vfrc-7r7c-w9mxnpmhighlight.js<9.18.29.18.2
GHSA-vfrc-7r7c-w9mxnpmhighlight.js>=10.0.0 <10.1.210.1.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9highlight.js8.2+ds-5+deb9u1DLA-2511-1
Debian12, 13, 14highlight.js9.18.1+dfsg1-3DEBIAN-CVE-2020-26237
UbuntuPro:16.04:LTShighlight.js8.2+ds-4ubuntu0.1~esm1UBUNTU-CVE-2020-26237
UbuntuPro:18.04:LTShighlight.js9.12.0+dfsg1-4ubuntu0.1~esm1UBUNTU-CVE-2020-26237
UbuntuPro:20.04:LTShighlight.js9.12.0+dfsg1-5ubuntu0.1~esm1UBUNTU-CVE-2020-26237

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

In Red Hat Virtualization, ovirt-engine-api-explorer uses a vulnerable version of highlight.js, however since release 4.4.3 ovirt-engine-api-explorer is obsoleted and no longer used.

ProductPackageStateAdvisory
Red Hat Quay 3quay/quay-rhel8:v3.6.0-62Fixed 2021-10-19RHSA-2021:3917
Logging Subsystem for Red Hat OpenShiftopenshift-logging/kibana6-rhel8Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-26237.

Attack patterns (CAPEC)

  • CAPEC-384 Application API Message Manipulation via Man-in-the-Middle Severity: Low
  • CAPEC-385 Transaction or Event Tampering via Application API Manipulation Severity: Medium
  • CAPEC-386 Application API Navigation Remapping Severity: Medium
  • CAPEC-387 Navigation Remapping To Propagate Malicious Content Severity: Medium
  • CAPEC-388 Application API Button Hijacking Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON