CVE-2024-21535 Cross site scripting in markdown-to-jsx
MediumCVSS 6.1
EPSS 0.52%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
9 packages: 5 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/node-markdown-to-jsx(Ubuntu 24.04) | = 7.2.0+dfsg-2; All versions | No fix listed | No fix yet |
| ubuntu/node-markdown-to-jsx(Ubuntu 25.10) | = 7.2.0+dfsg-2; = 7.2.0+dfsg-3; All versions | No fix listed | No fix yet |
| ubuntu/node-markdown-to-jsx(Ubuntu 26.04) | = 7.2.0+dfsg-3; All versions | No fix listed | No fix yet |
| ubuntu/node-markdown-to-jsx(Ubuntu 26.10) | = 7.2.0+dfsg-3; = 7.2.0+dfsg-4; All versions | No fix listed | No fix yet |
| debian/node-markdown-to-jsx(Debian 13) | < 7.2.0+dfsg-3 | 7.2.0+dfsg-3 | Fixed |
| debian/node-markdown-to-jsx(Debian 14) | < 7.2.0+dfsg-3 | 7.2.0+dfsg-3 | Fixed |
| markdown-to-jsx | < 7.4.0 | 7.4.0 | Fixed |
| npm markdown-to-jsx(npm) | < 7.4.0 | 7.4.0 | Fixed |
| quantizor markdown-to-jsx | < 7.4.0 | 7.4.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm markdown-to-jsx(npm) | < 7.4.0 | 7.4.0 |
| debian/node-markdown-to-jsx(Debian:13) | < 7.2.0+dfsg-3 | 7.2.0+dfsg-3 |
| debian/node-markdown-to-jsx(Debian:14) | < 7.2.0+dfsg-3 | 7.2.0+dfsg-3 |
| markdown-to-jsx | < 7.4.0 | 7.4.0 |
| ubuntu/node-markdown-to-jsx(Ubuntu:24.04) | All versions | No fix listed |
| quantizor markdown-to-jsx | < 7.4.0 | 7.4.0 |
| ubuntu/node-markdown-to-jsx(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/node-markdown-to-jsx(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/node-markdown-to-jsx(Ubuntu:24.04) | = 7.2.0+dfsg-2 | No fix listed |
| ubuntu/node-markdown-to-jsx(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/node-markdown-to-jsx(Ubuntu:25.10) | = 7.2.0+dfsg-2 | No fix listed |
| ubuntu/node-markdown-to-jsx(Ubuntu:25.10) | = 7.2.0+dfsg-3 | No fix listed |
| ubuntu/node-markdown-to-jsx(Ubuntu:26.10) | = 7.2.0+dfsg-3 | No fix listed |
| ubuntu/node-markdown-to-jsx(Ubuntu:26.10) | = 7.2.0+dfsg-4 | No fix listed |
| ubuntu/node-markdown-to-jsx(Ubuntu:26.04) | = 7.2.0+dfsg-3 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch
- security.snyk.io issue-tracking third-party-advisory
- github.com
- Debian Security Tracker CVE-2024-21535 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking
- github.com product