Cross-site Scripting in Parsedown
Date: 2022-03
Affected: composer/erusev/parsedown
Attack vector: xss
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2018-1000162
CWE: CWE-79
CVSS: 6.1 (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)

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.


Mitigations:

Architectural layers (MAESTRO):