Advisory

DEBIAN-CVE-2020-26237

Also known as: CVE-2020-26237

Summary

The record has no summary.

Details

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

High Basis: CVSS v3 score 8.7, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H

Dates

Published
2020-11-24 23:15 UTC
Modified
2026-10-26 12:01 UTC

Affected packages and fixes

highlight.js

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 9.18.1+dfsg1-3 (ecosystem)

Fixed versions

9.18.1+dfsg1-3

Fix

  • Fixed version 9.18.1+dfsg1-3
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

highlight.js

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 9.18.1+dfsg1-3 (ecosystem)

Fixed versions

9.18.1+dfsg1-3

Fix

  • Fixed version 9.18.1+dfsg1-3
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

highlight.js

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 9.18.1+dfsg1-3 (ecosystem)

Fixed versions

9.18.1+dfsg1-3

Fix

  • Fixed version 9.18.1+dfsg1-3
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences