VDB
Sign up
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.0

Details

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.0
Fixcomposer require erusev/parsedown:^1.7.0

References