{"id":"UBUNTU-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.","modified":"2026-05-20T16:16:32.507589111Z","published":"2024-10-15T05:15:00Z","upstream":["CVE-2024-21535"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-21535"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-21535"},{"type":"REPORT","url":"https://security.snyk.io/vuln/SNYK-JS-MARKDOWNTOJSX-6258886"},{"type":"REPORT","url":"https://github.com/quantizor/markdown-to-jsx/commit/8eb74da825c0d8d2e9508d73c672bcae36ba555a"}],"affected":[{"package":{"name":"node-markdown-to-jsx","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/node-markdown-to-jsx?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.2.0+dfsg-2"],"ecosystem_specific":{"binaries":[{"binary_name":"node-markdown-to-jsx","binary_version":"7.2.0+dfsg-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-21535.json"}},{"package":{"name":"node-markdown-to-jsx","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/node-markdown-to-jsx?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.2.0+dfsg-2","7.2.0+dfsg-3"],"ecosystem_specific":{"binaries":[{"binary_name":"node-markdown-to-jsx","binary_version":"7.2.0+dfsg-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-21535.json"}},{"package":{"name":"node-markdown-to-jsx","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/node-markdown-to-jsx?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.2.0+dfsg-3"],"ecosystem_specific":{"binaries":[{"binary_version":"7.2.0+dfsg-3","binary_name":"node-markdown-to-jsx"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-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"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}