Public mode

No access to your tenant or devices. Every item links to its source. What this means

Sources need attention Customize Public modeDiscuss ChangeIntel on Discord

Prototype Pollution in highlight.js

CVSS 3.1 5.8 MEDIUMEUVD CVSS 3.1 5.8 CVSS 3.1 · [email protected] · Secondary 5.8 MEDIUMCVSS 3.1 · [email protected] · Primary 8.7 HIGHCVSS 2.0 · [email protected] · Primary 4.9 MEDIUMCVSS_V3 Publisher rating MODERATEFixed by highlight.js 9.18.2Fixed by highlight.js 10.1.2KEV status unknown

cve-program · CVE-2020-26237

Published

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.

Read the publisher's advisory

euvd · EUVD-2020-1472

Published

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.

Read the publisher's advisory

nvd · CVE-2020-26237

Published

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.

Read the publisher's advisory

osv · GHSA-vfrc-7r7c-w9mx

Published

### Impact Affected versions of this package 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._ ### Patches 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. ### Workarounds #### Patch your library Manually patch your library to create null objects for both `languages` and `aliases`: ```js const HLJS = function(hljs) { // ... var languages = Object.create(null); var aliases = Object.create(null); ``` #### Filter out bad data from end users: Filter the language names that users are allowed to inject into your HTML to guarantee they are valid. ### References * [What is Prototype Pollution?](https://codeburst.io/what-is-prototype-pollution-49482fc4b638) * https://github.com/highlightjs/highlight.js/pull/2636 ### For more information If you have any questions or comments about this advisory: * Please file an issue against [highlight.js](https://github.com/highlightjs/highlight.js/issues/)

Read the publisher's advisory

Affected versions, risk and source history

cve-program · CVE-2020-26237

Published

highlight.js

Vendor product

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "product": "highlight.js",
                    "vendor": "highlightjs",
                    "versions": [
                        {
                            "status": "affected",
                            "version": "< 9.18.2"
                        },
                        {
                            "status": "affected",
                            "version": ">= 10.0.0, < 10.1.2"
                        }
                    ]
                }

Original source record · Cite this exact observation · Complete original publisher JSON

euvd · EUVD-2020-1472

Published

EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON.

Original publisher date fields

datePublished: Nov 24, 2020, 11:00:21 PM

dateUpdated: Aug 4, 2024, 3:56:03 PM

2 related source bulletins · separate from aliases

RHSA-2021:3917: Red Hat Security Advisory: Red Hat Quay v3.6.0 security, bug fix and enhancement update

CVE-2017-16137 · CVE-2017-16138 · CVE-2018-1107 · CVE-2018-1109 · CVE-2018-3721 · CVE-2018-3728 · CVE-2018-3774 · CVE-2018-16492 · CVE-2018-21270 · CVE-2019-20920 · CVE-2019-20922 · CVE-2019-1010266 · CVE-2020-7608 · CVE-2020-8203 · CVE-2020-15366 · CVE-2020-26237 · CVE-2020-26291 · CVE-2020-35653 · CVE-2020-35654 · CVE-2021-23364 · CVE-2021-23368 · CVE-2021-23382 · CVE-2021-25289 · CVE-2021-25290 · CVE-2021-25291 · CVE-2021-25292 · CVE-2021-25293 · CVE-2021-27515 · CVE-2021-27516 · CVE-2021-27921 · CVE-2021-27922 · CVE-2021-27923 · CVE-2021-34552

WID-SEC-W-2022-0735: Oracle MySQL: Mehrere Schwachstellen

CVE-2018-25032 · CVE-2020-26237 · CVE-2021-22119 · CVE-2021-31805 · CVE-2022-1292 · CVE-2022-21455 · CVE-2022-21509 · CVE-2022-21515 · CVE-2022-21517 · CVE-2022-21519 · CVE-2022-21522 · CVE-2022-21525 · CVE-2022-21526 · CVE-2022-21527 · CVE-2022-21528 · CVE-2022-21529 · CVE-2022-21530 · CVE-2022-21531 · CVE-2022-21534 · CVE-2022-21535 · CVE-2022-21537 · CVE-2022-21538 · CVE-2022-21539 · CVE-2022-21547 · CVE-2022-21550 · CVE-2022-21553 · CVE-2022-21555 · CVE-2022-21556 · CVE-2022-21569 · CVE-2022-21824 · CVE-2022-22968 · CVE-2022-23308 · CVE-2022-27778

No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.

Original source record · Cite this exact observation · Complete original publisher JSON

nvd · CVE-2020-26237

Published

NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.

Source analysis status: Modified

Weakness classifications: CWE-471

Original publisher date fields

published: 2020-11-24T23:15:11.223

lastModified: 2026-06-17T03:07:53.420

3 source CPE criteria · context only
  • cpe:2.3:a:highlightjs:highlight.js:*:*:*:*:*:node.js:*:*
  • cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:mysql_enterprise_monitor:*:*:*:*:*:*:*:*

The original JSON retains the logical configuration operators, exclusions and version bounds.

No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.

Original source record · Cite this exact observation · Complete original publisher JSON

osv · GHSA-vfrc-7r7c-w9mx

Published

highlight.js

npm

SEMVER · introduced 0 → fixed 9.18.2

highlight.js

npm

SEMVER · introduced 10.0.0 → fixed 10.1.2

Original source record · Cite this exact observation · Complete original publisher JSON

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 25 Nov 15:36 UTC · 277 of 278 readable · 272 fully read · documentation 469/469 current