GitHub Advisory Database
GHSA-4wx3-54gh-9fr9
Cross site scripting in markdown-to-jsx
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
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | markdown-to-jsx | All versions before 7.4.0 (fixed in 7.4.0) |