Skip to content
OpenAdvisories
High · 8.1 CVE-2019-10905 EUVD-2022-1333GHSA-62m3-fc7f-jpp8

Parsedown Class-Name Injection

Published Apr 6, 2019 · Updated Aug 4, 2024 · Assigned by mitre

Description

Parsedown before 1.7.2, when safe mode is used and HTML markup is disabled, might allow attackers to execute arbitrary JavaScript code if a script (already running on the affected page) executes the contents of any element with a specific class. This occurs because spaces are permitted in code block infostrings, which interferes with the intended behavior of a single class name beginning with the language- substring.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist erusev/parsedown < 1.7.2 1.7.2 GHSA-62m3-fc7f-jpp8

References