NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2024-21535: Cross site scripting in markdown-to-jsx

mediumCVSS 4.0 5.3 · 3.1 6.1GHSA-4wx3-54gh-9fr9

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