{"id":"CVE-2024-21535","aliases":["CVE-2024-21535","GHSA-4wx3-54gh-9fr9"],"related":[],"kind":"vulnerability","state":"published","title":"Cross site scripting in markdown-to-jsx","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Las versiones del paquete markdown-to-jsx anteriores a la 7.4.0 son vulnerables a ataques de Cross Site Scripting (XSS) a través de la propiedad src debido a una desinfección incorrecta de la entrada. Un atacante puede ejecutar código arbitrario inyectando un elemento iframe malicioso en el paquete markdown.","source":"nvd"}],"published":"2024-10-15T05:00:03.815Z","modified":"2026-06-17T07:09:41.770Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"7.4.0","status":"affected"}],"product":"markdown-to-jsx","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","fixed":"7.4.0","status":"affected"}],"vendor":"markdown-to-jsx","product":"markdown-to-jsx","cpe":"cpe:2.3:a:markdown-to-jsx:markdown-to-jsx:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"7.4.0"}],"ecosystem":"npm","package":"markdown-to-jsx","purl":"pkg:npm/markdown-to-jsx","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"7.4.0"}],"vendor":"quantizor","product":"markdown-to-jsx","cpe":"cpe:2.3:a:quantizor:markdown-to-jsx:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-MARKDOWNTOJSX-6258886","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/quantizor/markdown-to-jsx/commit/8eb74da825c0d8d2e9508d73c672bcae36ba555a","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21535","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/quantizor/markdown-to-jsx","tags":["package"],"sources":["ghsa"]}],"credits":["Rustam Komildzhonov"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-10-15T13:54:20.774Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-21535","url":"https://www.cve.org/CVERecord?id=CVE-2024-21535","licence":"CVE Terms of Use","modified":"2024-10-15T14:02:35.726Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4wx3-54gh-9fr9","url":"https://github.com/advisories/GHSA-4wx3-54gh-9fr9","licence":"CC-BY-4.0","modified":"2024-10-15T18:12:20.318Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-21535","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21535","licence":"Public domain","modified":"2026-06-17T07:09:41.770Z"}],"updatedAt":"2026-11-25T22:58:46.745Z","epss":{"score":0.00518,"percentile":0.45511,"date":"2026-12-01T12:00:22.000Z"}}