{"id":"CVE-2024-21535","published":"2024-10-15T05:00:03Z","modified":"2024-10-15T14:02:35Z","title":"Versions of the package markdown-to-jsx before 7.4.0 are vulnerable to Cross-site Scripting (XSS) via the src property…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00518,"percentile":0.44933,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-MARKDOWNTOJSX-6258886","tags":[]},{"url":"https://github.com/quantizor/markdown-to-jsx/commit/8eb74da825c0d8d2e9508d73c672bcae36ba555a","tags":[]}],"priority":{"score":13.3,"factors":[{"name":"EPSS percentile","points":8.99},{"name":"CVSS severity","points":4.27}]},"affectedVersions":[{"vendor":"n/a","product":"markdown-to-jsx","versions":["< 7.4.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-15T13:54:20.774016Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"markdown-to-jsx","vulnerableRanges":["<7.4.0"],"patched":["7.4.0"],"from":["GHSA-4wx3-54gh-9fr9"],"provenance":"source"}],"summary":{"text":"The markdown-to-jsx npm package, in versions before 7.4.0, fails to properly sanitise the src property, allowing cross-site scripting through markdown content. An attacker who can get a malicious iframe element into the markdown can execute arbitrary script, but this requires a user to interact with the affected content, and no authentication is needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:44:56Z"},"euvd":{"id":"EUVD-2024-2940","exploited":false,"provenance":"source"}}