{"id":"CVE-2024-21535","aliases":["GHSA-4wx3-54gh-9fr9"],"url":"https://o3.security/vulnerability/CVE-2024-21535","summary":"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.","published":"2024-10-15T05:00:03.815Z","modified":"2026-08-12T03:51:32.117244821Z","cvss":{"score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"markdown-to-jsx","fixedVersion":"7.4.0"}],"fix":{"url":"https://github.com/quantizor/markdown-to-jsx/commit/8eb74da825c0d8d2e9508d73c672bcae36ba555a","label":"quantizor/markdown-to-jsx@8eb74da"},"references":[{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-MARKDOWNTOJSX-6258886"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21535.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21535"},{"type":"FIX","url":"https://github.com/quantizor/markdown-to-jsx/commit/8eb74da825c0d8d2e9508d73c672bcae36ba555a"},{"type":"PACKAGE","url":"https://github.com/quantizor/markdown-to-jsx"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:32.117244821Z"}}