CVE-2020-26237
Summary
| CVE | CVE-2020-26237 |
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2020-11-24 23:15:00 UTC |
| Updated | 2022-10-19 13:49:00 UTC |
| Description | 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. |
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|
| use null prototype objects for languages/aliases by night · Pull Request #2636 · highlightjs/highlight.js · GitHub |
MISC |
github.com |
Patch, Third Party Advisory |
| [SECURITY] [DLA 2511-1] highlight.js security update |
MLIST |
lists.debian.org |
|
| (parser) use null prototype objects for languages/aliases (#2636) · highlightjs/highlight.js@7241013 · GitHub |
MISC |
github.com |
Patch, Third Party Advisory |
| Prototype Pollution · Advisory · highlightjs/highlight.js · GitHub |
CONFIRM |
github.com |
Mitigation, Third Party Advisory |
| Oracle Critical Patch Update Advisory - July 2022 |
N/A |
www.oracle.com |
|
| highlight.js |
MISC |
www.npmjs.com |
Third Party Advisory |
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 983099 Nodejs (npm) Security Update for highlight.js (GHSA-vfrc-7r7c-w9mx)