{"id":"CVE-2024-21535","aliases":["DEBIAN-CVE-2024-21535","EUVD-2024-2940","GHSA-4wx3-54gh-9fr9","UBUNTU-CVE-2024-21535"],"status":"published","title":"Cross site scripting in markdown-to-jsx","description":"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.","severity":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00518,"percentile":0.44313,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2024-10-15T05:00:03Z","modified":"2026-11-02T12:01:23Z","fixes":[{"ecosystem":"npm","package":"markdown-to-jsx","fixed_in":["7.4.0"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:13","package":"node-markdown-to-jsx","fixed_in":["7.2.0+dfsg-3"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"node-markdown-to-jsx","fixed_in":["7.2.0+dfsg-3"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"markdown-to-jsx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.4.0"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"node-markdown-to-jsx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.2.0+dfsg-3"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"node-markdown-to-jsx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.2.0+dfsg-3"}]}]},{"source":"osv","ecosystem":"npm","package":"markdown-to-jsx","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"7.4.0"}]}]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"node-markdown-to-jsx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.2.0+dfsg-2"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"node-markdown-to-jsx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.2.0+dfsg-2","7.2.0+dfsg-3"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"node-markdown-to-jsx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.2.0+dfsg-3","7.2.0+dfsg-4"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"node-markdown-to-jsx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.2.0+dfsg-3"]}],"products":[{"vendor":"markdown-to-jsx","product":"markdown-to-jsx"},{"vendor":"quantizor","product":"markdown-to-jsx"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-MARKDOWNTOJSX-6258886","tags":["Third Party Advisory","web","report"]},{"url":"https://github.com/quantizor/markdown-to-jsx/commit/8eb74da825c0d8d2e9508d73c672bcae36ba555a","tags":["Patch","fix","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21535","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-4wx3-54gh-9fr9"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21535.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-21535","tags":["advisory"]},{"url":"https://github.com/quantizor/markdown-to-jsx","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2024-21535","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-21535","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2024-21535","description":"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.","status":"published","published":"2024-10-15T05:00:03.815Z","modified":"2024-10-15T14:02:35.726Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P","level":"medium","assessor":"cna"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:34:04.681315Z"}],"euvd":[{"id":"EUVD-2024-2940","description":"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.","status":"published","published":"2024-10-15T05:00:03Z","modified":"2024-10-15T14:02:35Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P","level":"medium"}],"updated_at":"2026-11-03T00:27:37.685207Z"}],"ghsa":[{"id":"GHSA-4wx3-54gh-9fr9","title":"Cross site scripting in markdown-to-jsx","description":"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.","status":"published","published":"2024-10-15T06:30:31Z","modified":"2024-10-15T17:36:27Z","cvss":[{"version":"4.0","score":5.3,"vector":"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","level":"medium"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:38:10.696798Z"}],"nvd":[{"id":"CVE-2024-21535","description":"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.","status":"published","published":"2024-10-15T05:15:11.53Z","modified":"2026-06-17T07:09:41.77Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:10:31.879321Z"}],"osv":[{"id":"CVE-2024-21535","description":"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.","status":"published","published":"2024-10-15T05:00:03.815Z","modified":"2026-10-28T02:31:14.951639616Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:44:38.577405Z"},{"id":"DEBIAN-CVE-2024-21535","description":"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.","status":"published","published":"2024-10-15T05:15:11.53Z","modified":"2026-11-02T12:01:23.767810162Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:45:41.849198Z"},{"id":"GHSA-4wx3-54gh-9fr9","title":"Cross site scripting in markdown-to-jsx","description":"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.","status":"published","published":"2024-10-15T06:30:31Z","modified":"2024-10-15T18:12:20.318536Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"},{"version":"4.0","score":5.3,"vector":"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","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:37.528068Z"},{"id":"UBUNTU-CVE-2024-21535","description":"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.","status":"published","published":"2024-10-15T05:15:00Z","modified":"2026-10-17T12:56:29.967452435Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T16:54:42.68848Z"}]}}
