CVE-2024-21535: Cross site scripting in markdown-to-jsx
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.
Published Oct 15, 2024
Affected packages
markdown-to-jsx
- Ecosystem
- npm
- Affected
- < 7.4.0
- Fixed in
- 7.4.0
- Check
npm ls markdown-to-jsx
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
