CVE-2018-1000162
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
erusev/parsedown (Packagist)before 1.7.0GitHub Advisory Database
parsedown parsedownbefore 1.7.0NVD

All scores

GitHub6.1medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD6.1medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD4.3medium CVSS:2.0AV: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

SourceRecordLicence
CVE ListCVE-2018-1000162 changed 2024-08-05CVE Terms of Use
GitHub Advisory DatabaseGHSA-qgpv-86r3-87fh changed 2024-02-16CC-BY-4.0
NVDCVE-2018-1000162 changed 2026-06-17Public domain