# CVE-2024-21535: Cross site scripting in markdown-to-jsx

- Severity: Medium 6.1 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2024-10-15T05:00:03.815Z
- Modified: 2026-06-17T07:09:41.770Z
- Also known as: GHSA-4wx3-54gh-9fr9
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- markdown-to-jsx: before 7.4.0
- markdown-to-jsx markdown-to-jsx: before 7.4.0
- markdown-to-jsx (npm): before 7.4.0
- quantizor markdown-to-jsx: before 7.4.0

## Every score

- snyk: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://security.snyk.io/vuln/SNYK-JS-MARKDOWNTOJSX-6258886> (third-party-advisory, web)
- <https://github.com/quantizor/markdown-to-jsx/commit/8eb74da825c0d8d2e9508d73c672bcae36ba555a> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-21535> (advisory)
- <https://github.com/quantizor/markdown-to-jsx> (package)

## Sources

- CVE List: [CVE-2024-21535](https://www.cve.org/CVERecord?id=CVE-2024-21535), CVE Terms of Use, modified 2024-10-15
- GitHub Advisory Database: [GHSA-4wx3-54gh-9fr9](https://github.com/advisories/GHSA-4wx3-54gh-9fr9), CC-BY-4.0, modified 2024-10-15
- NVD: [CVE-2024-21535](https://nvd.nist.gov/vuln/detail/CVE-2024-21535), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-21535 · Whole record: https://cve.day/CVE-2024-21535.json · Rebuilt by cve.day 2026-11-25T22:58:46.745Z
