MEDIUM6.1
GHSA-qgpv-86r3-87fh
Cross-site Scripting in Parsedown
Quick fix
GHSA-qgpv-86r3-87fh — erusev/parsedown: upgrade to the fixed version with the command below.
composer require erusev/parsedown:^1.7.0Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/erusev/parsedown
Introduced in:
0Fixed in: 1.7.0Fix
composer require erusev/parsedown:^1.7.0References
- https://nvd.nist.gov/vuln/detail/CVE-2018-1000162[ADVISORY]
- https://github.com/Roave/SecurityAdvisories/issues/44#issuecomment-368594409[WEB]
- https://github.com/erusev/parsedown/pull/495[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/erusev/parsedown/CVE-2018-1000162.yaml[WEB]
- https://github.com/erusev/parsedown[PACKAGE]