CVE-2024-21535
published medium CVSS 3.1 · 6.1markdown-to-jsx: Cross-site Scripting vulnerability in markdown-to-jsx
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.1 / 10
- Severity
- medium
- Provider
- snyk · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | markdown-to-jsx | 0 to < 7.4.0 (affected · semver) | snyk · cna |
| markdown-to-jsx | markdown-to-jsx | 0 to < 7.4.0 (affected · semver)Default: affected | CISA-ADP · adp |
Weaknesses
1- CWE-79 Cross-site Scripting (XSS)
References
2Provider assertions
2snyk · cna
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 66f9799731376ca55a32dd1c6910ea7277505570b4028b7d43e926eec32c7172
- Ingested
- 23 Sep 2026, 08:19:02 UTC
- Source record
- Official CVE record