6.1medium
Cross-site Scripting in Parsedown
- Severity
- 6.1medium CVSS:3.0 by NVD
- Exploit likelihood
- 1.16% (higher than 68% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-qgpv-86r3-87fh
Description
Parsedown version prior to 1.7.0 contains a Cross Site Scripting (XSS) vulnerability in `setMarkupEscaped` for escaping HTML that can result in JavaScript code execution. This attack appears to be exploitable via specially crafted markdown that allows it to side step HTML escaping by breaking AST boundaries. This vulnerability appears to have been fixed in 1.7.0 and later.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| erusev/parsedown (Packagist) | before 1.7.0 | GitHub Advisory Database |
| parsedown parsedown | before 1.7.0 | NVD |
All scores
| GitHub | 6.1medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 6.1medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Classification
What each source says
CVE List
Parsedown version prior to 1.7.0 contains a Cross Site Scripting (XSS) vulnerability in `setMarkupEscaped` for escaping HTML that can result in JavaScript code execution. This attack appears to be exploitable via specially crafted markdown that allows it to side step HTML escaping by breaking AST boundaries. This vulnerability appears to have been fixed in 1.7.0 and later.
NVD (es)
Parsedown, en versiones anteriores a la 1.7.0, contiene una vulnerabilidad de Cross-Site Scripting (XSS) en `setMarkupEscaped` para escapar HTML que puede resultar en la ejecución de código JavaScript. Este ataque parece ser explotable mediante un marcado especialmente manipulado que permite el escapado HTML lateral rompiendo los límites de AST. La vulnerabilidad parece haber sido solucionada en las versiones 1.7.0 y siguientes.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2018-1000162 changed 2024-08-05 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qgpv-86r3-87fh changed 2024-02-16 | CC-BY-4.0 |
| NVD | CVE-2018-1000162 changed 2026-06-17 | Public domain |