Advisory

GHSA-62m3-fc7f-jpp8

Also known as: CVE-2019-10905

Summary

Parsedown Class-Name Injection

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-03-26 00:09 UTC
Modified
2024-02-16 08:03 UTC

Affected packages and fixes

erusev/parsedown

Packagist · All systems

Affected

  • introduced 0, fixed 1.7.2 (ecosystem)

Fixed versions

1.7.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences