ADVISORIES

GitHub Advisory Database

GHSA-4wx3-54gh-9fr9

Cross site scripting in markdown-to-jsx

Moderate CVE-2024-21535

Details

Versions of the package markdown-to-jsx before 7.4.0 are vulnerable to Cross-site Scripting (XSS) via the src property due to improper input sanitization. An attacker can execute arbitrary code by injecting a malicious iframe element in the markdown.

Affected packages

EcosystemPackageAffected versions
npmmarkdown-to-jsx
All versions before 7.4.0 (fixed in 7.4.0)

References