Cross-site scripting in markdown-to-jsx
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Partial Red Hat: 3 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | markdown-to-jsx | before 7.4.0 | 7.4.0 | Patch available | CNA |
| — | markdown-to-jsx (npm) | before 7.4.0 | 7.4.0 | Patch available | GHSA-4wx3-54gh-9fr9 |
- markdown-to-jsx Vendor— Affected before 7.4.0 Fixed in 7.4.0 Patch available CNA
- markdown-to-jsx (npm) Vendor— Affected before 7.4.0 Fixed in 7.4.0 Patch available GHSA-4wx3-54gh-9fr9
Remediation
- Fix · CNA markdown-to-jsx Fixed in 7.4.0
- Fix · GHSA-4wx3-54gh-9fr9 markdown-to-jsx (npm) Fixed in 7.4.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Migration Toolkit for Virtualization | Affected | No fix yet: Fix deferred |
| Node HealthCheck Operator | Affected | No fix planned: Will not fix |
| Red Hat OpenShift Data Science (RHODS) | Affected | No fix yet: Fix deferred |
Not affected: 4 products
- Multicluster Engine for Kubernetes
- Red Hat Advanced Cluster Management for Kubernetes 2
- Red Hat Developer Hub 1
- Red Hat OpenShift Data Science (RHODS)
Timeline
- 2026-10-02 Threatist record created from CVE-2024-21535
- 2026-10-03 Alias added: GHSA-4wx3-54gh-9fr9
- 2026-10-27 Affected versions changed · Red Hat
References
Sources
- CVE-2024-21535 · CVE Program
- CVE-2024-21535 · NVD
- FIRST EPSS
- GHSA-4wx3-54gh-9fr9 · GitHub Advisory Database · CC BY 4.0
- CVE-2024-21535 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences