{"id":"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.","aliases":["GHSA-4wx3-54gh-9fr9"],"modified":"2026-05-18T05:56:01.551981630Z","published":"2024-10-15T05:00:03.815Z","database_specific":{"cwe_ids":["CWE-79"],"cna_assigner":"snyk","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21535.json"},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/quantizor/markdown-to-jsx","events":[{"introduced":"0"},{"fixed":"34531ebcf763494c72effec83aa4be6c0412c0db"}]}],"versions":["v7.3.2","v7.3.1","v7.3.0","v7.2.1","v7.2.0","v7.1.9","v7.1.8","v7.1.7","7.1.6","7.1.5","7.1.4","7.1.3","7.1.2","7.1.1","7.1.0","7.0.1","7.0.0","6.11.4","6.11.2","6.11.1","6.11.0","6.10.3","6.10.2","6.10.1","6.10.0","6.9.4","6.9.3","6.9.2","6.9.1","6.9.0","6.8.4","6.8.3","6.8.2","6.8.1","6.8.0","6.7.4","6.7.2","6.7.1","6.6.9","6.6.8","6.6.7","6.6.6","6.6.5","6.6.4","6.6.3","6.6.2","6.6.1","6.6.0","6.5.2","6.5.1","6.5.0","6.4.1","6.4.0","6.3.2","6.3.1","6.3.0","6.2.2","6.2.1","6.2.0","6.1.4","6.1.3","6.1.2","6.1.1","6.1.0","6.0.3","6.0.2","5.4.2","5.4.1","5.4.0","5.3.3","5.3.2","5.3.1","5.3.0","5.2.0","5.1.0","5.0.2","5.0.0","4.0.3","4.0.3-beta","4.0.2-beta","4.0.1-beta","4.0.0-beta","3.1.1","3.1.0","3.0.0","2.0.0","1.2.0","1.1.0","1.0.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-21535.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P"}]}