Security mailing lists by PureSourceCode

CVE-2020-26237

HIGH 8.7CVSS 3.1

Prototype Pollution in highlight.js

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.

Published
24 Nov 2020
Last modified
8 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-471
Also known as
GHSA-vfrc-7r7c-w9mx
Sources
NVDJSONOSV GHSA-vfrc-7r7c-w9mxJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 8.7 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 5.8 CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.8 CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.9 AV:N/AC:M/Au:S/C:N/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD highlightjs highlight.js
cpe:2.3:a:highlightjs:highlight.js:*:*:*:*:*:node.js:*:*
< 9.18.2 9.18.2
NVD highlightjs highlight.js
cpe:2.3:a:highlightjs:highlight.js:*:*:*:*:*:node.js:*:*
>= 10.1.0, < 10.1.2 10.1.2
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
= 9.0
NVD oracle mysql_enterprise_monitor
cpe:2.3:a:oracle:mysql_enterprise_monitor:*:*:*:*:*:*:*:*
<= 8.0.30
OSV npm highlight.js < 9.18.2 9.18.2
OSV npm highlight.js >= 10.0.0, < 10.1.2 10.1.2

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 24 Nov 2020)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 Nov 2020)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.