GitHub Advisoryadvisory · Packagist

GHSA-62m3-fc7f-jpp8 Parsedown Class-Name Injection

HIGH Published 2022-03-26 Modified 2023-09-11 Official page ↗
Aliases
CVE-2019-10905
Ecosystem
Packagist
Packages
erusev/parsedown
Severity
High
CVSS vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-79
Reviewed
2022-03-26

Affected packages

• Packagist erusev/parsedown: < 1.7.2 → fixed in 1.7.2

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.

Related

Alias · CVE (1)

  • CVE-2019-10905 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… vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References