{"id":"GHSA-4wx3-54gh-9fr9","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.","aliases":["CVE-2024-21535"],"modified":"2024-10-15T18:12:20.318536Z","published":"2024-10-15T06:30:31Z","database_specific":{"github_reviewed_at":"2024-10-15T17:36:26Z","nvd_published_at":"2024-10-15T05:15:11Z","cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21535"},{"type":"WEB","url":"https://github.com/quantizor/markdown-to-jsx/commit/8eb74da825c0d8d2e9508d73c672bcae36ba555a"},{"type":"PACKAGE","url":"https://github.com/quantizor/markdown-to-jsx"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-MARKDOWNTOJSX-6258886"}],"affected":[{"package":{"name":"markdown-to-jsx","ecosystem":"npm","purl":"pkg:npm/markdown-to-jsx"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"7.4.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/10/GHSA-4wx3-54gh-9fr9/GHSA-4wx3-54gh-9fr9.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N"}]}