CVE-2024-21535
MEDIUM 6.1CVSS 3.1Cross site scripting in markdown-to-jsx
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.
- Published
- 15 Oct 2024
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-4wx3-54gh-9fr9
- Sources
- NVDJSONOSV GHSA-4wx3-54gh-9fr9JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | quantizor | markdown-to-jsxcpe:2.3:a:quantizor:markdown-to-jsx:*:*:*:*:*:*:*:* |
< 7.4.0 | 7.4.0 |
| OSV | npm | markdown-to-jsx | < 7.4.0 | 7.4.0 |
References
- https://github.com/quantizor/markdown-to-jsx/commit/8eb74da825c0d8d2e9508d73c672bcae36ba555a · Patch, WEB
- https://security.snyk.io/vuln/SNYK-JS-MARKDOWNTOJSX-6258886 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-21535 · ADVISORY
- https://github.com/quantizor/markdown-to-jsx · PACKAGE
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 15 Oct 2024)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 15 Oct 2024)