Skip to content
OpenAdvisories
Medium · 6.1 CVE-2018-1000162 EUVD-2022-1520GHSA-qgpv-86r3-87fh

Cross-site Scripting in Parsedown

Published Apr 18, 2018 · Updated Aug 5, 2024 · Assigned by mitre

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 packages

EcosystemPackageAffectedFixedRecord
Packagist erusev/parsedown < 1.7.0 1.7.0 GHSA-qgpv-86r3-87fh

References