Medium severity6.1NVD Advisory· Published Oct 15, 2024· Updated Jun 17, 2026
CVE-2024-21535
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
markdown-to-jsxnpm | < 7.4.0 | 7.4.0 |
Affected products
3cpe:2.3:a:quantizor:markdown-to-jsx:*:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:a:quantizor:markdown-to-jsx:*:*:*:*:*:*:*:*range: <7.4.0
- (no CPE)range: 0
Patches
Vulnerability mechanics
References
4- github.com/quantizor/markdown-to-jsx/commit/8eb74da825c0d8d2e9508d73c672bcae36ba555anvdPatchWEB
- github.com/advisories/GHSA-4wx3-54gh-9fr9ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-21535ghsaADVISORY
- security.snyk.io/vuln/SNYK-JS-MARKDOWNTOJSX-6258886nvdThird Party AdvisoryWEB
News mentions
0No linked articles in our index yet.