Modification of Assumed-Immutable Data (MAID) Affecting highlight.js package, versions <9.18.1+dfsg1-3


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
1.33% (71st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN12-HIGHLIGHTJS-1548180
  • published26 Nov 2020
  • disclosed24 Nov 2020

Introduced: 24 Nov 2020

CVE-2020-26237  (opens in a new tab)
CWE-471  (opens in a new tab)

How to fix?

Upgrade Debian:12 highlight.js to version 9.18.1+dfsg1-3 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream highlight.js package and not the highlight.js package as distributed by Debian. See How to fix? for Debian:12 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1