CVE-2020-26237
CVE-2020-26237 · Prototype Pollution in highlight.js
CVSS 5.8 · Medium · EPSS 1.3% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- highlight.jsNo fix published
- highlight.js Debian 12Update to 9.18.1+dfsg1-3
- highlight.js Debian 13Update to 9.18.1+dfsg1-3
- highlight.js Debian 14Update to 9.18.1+dfsg1-3
- and 4 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="highlight.js"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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
- Updated
Fixes in distributions
- USN-8276-1 · Ubuntu Pro 16.04 LTS, Ubuntu Pro 18.04 LTS, Ubuntu Pro 20.04 LTS ·
- DLA-2511-1 · Debian 9 ·
Affected products and versions
highlight.js
- Versions
- < 9.18.2: Affected
- >= 10.0.0, < 10.1.2: Affected
No fix published
highlight.js Debian 12
- Affected ranges
- ECOSYSTEM: < 9.18.1+dfsg1-3
Update to 9.18.1+dfsg1-3
highlight.js Debian 13
- Affected ranges
- ECOSYSTEM: < 9.18.1+dfsg1-3
Update to 9.18.1+dfsg1-3
highlight.js Debian 14
- Affected ranges
- ECOSYSTEM: < 9.18.1+dfsg1-3
Update to 9.18.1+dfsg1-3
highlight.js npm
- Affected ranges
- SEMVER: < 9.18.2
Update to 9.18.2
highlight.js npm
- Affected ranges
- SEMVER: ≥ 10.0.0, < 10.1.2
Update to 10.1.2
highlight.js Ubuntu Pro 16.04 LTS
- Versions
- 8.2+ds-4build1
- Affected ranges
- ECOSYSTEM: < 8.2+ds-4ubuntu0.1~esm1
Update to 8.2+ds-4ubuntu0.1~esm1
highlight.js Ubuntu Pro 18.04 LTS
- Versions
- 9.12.0+dfsg1-3
- 9.12.0+dfsg1-4
- Affected ranges
- ECOSYSTEM: < 9.12.0+dfsg1-4ubuntu0.1~esm1
Update to 9.12.0+dfsg1-4ubuntu0.1~esm1
highlight.js Ubuntu Pro 20.04 LTS
- Versions
- 9.12.0+dfsg1-4ubuntu1
- 9.12.0+dfsg1-5
- Affected ranges
- ECOSYSTEM: < 9.12.0+dfsg1-5ubuntu0.1~esm1
Update to 9.12.0+dfsg1-5ubuntu0.1~esm1
Original sources
- https://github.com/highlightjs/highlight.js/security/advisories/GHSA-vfrc-7r7c-w9mx
- https://github.com/highlightjs/highlight.js/pull/2636
- https://www.npmjs.com/package/highlight.js
- https://github.com/highlightjs/highlight.js/commit/7241013ae011a585983e176ddc0489a7a52f6bb0
- https://lists.debian.org/debian-lts-announce/2020/12/msg00041.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://nvd.nist.gov/vuln/detail/CVE-2020-26237