libjs-highlight: Highlight.js is a syntax highlighter written in JavaScript
CVE-2020-26237 is fixed in 4 products on 1 platform, first by libjs-highlight 9.12.0+dfsg1-4ubuntu0.1~esm1, released November 24, 2020. It is not reported as exploited. Patch Radar priority: Routine.
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.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| libjs-highlight · Ubuntu 18.04.6 LTS (bionic) | 9.12.0+dfsg1-4ubuntu0.1~esm1 | libjs-highlight 9.12.0+dfsg1-4ubuntu0.1~esm1 | Nov 24, 2020 |
| libjs-highlight · Ubuntu 20.04 LTS (focal) | 9.12.0+dfsg1-5ubuntu0.1~esm1 | libjs-highlight 9.12.0+dfsg1-5ubuntu0.1~esm1 | Nov 24, 2020 |
| libjs-highlight.js · Ubuntu 18.04.6 LTS (bionic) | 9.12.0+dfsg1-4ubuntu0.1~esm1 | libjs-highlight.js 9.12.0+dfsg1-4ubuntu0.1~esm1 | Nov 24, 2020 |
| libjs-highlight.js · Ubuntu 20.04 LTS (focal) | 9.12.0+dfsg1-5ubuntu0.1~esm1 | libjs-highlight.js 9.12.0+dfsg1-5ubuntu0.1~esm1 | Nov 24, 2020 |
| node-highlight · Ubuntu 18.04.6 LTS (bionic) | 9.12.0+dfsg1-4ubuntu0.1~esm1 | node-highlight 9.12.0+dfsg1-4ubuntu0.1~esm1 | Nov 24, 2020 |
| node-highlight · Ubuntu 20.04 LTS (focal) | 9.12.0+dfsg1-5ubuntu0.1~esm1 | node-highlight 9.12.0+dfsg1-5ubuntu0.1~esm1 | Nov 24, 2020 |
| node-highlight.js · Ubuntu 18.04.6 LTS (bionic) | 9.12.0+dfsg1-4ubuntu0.1~esm1 | node-highlight.js 9.12.0+dfsg1-4ubuntu0.1~esm1 | Nov 24, 2020 |
| node-highlight.js · Ubuntu 20.04 LTS (focal) | 9.12.0+dfsg1-5ubuntu0.1~esm1 | node-highlight.js 9.12.0+dfsg1-5ubuntu0.1~esm1 | Nov 24, 2020 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.