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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | markdown-to-jsx | < 7.4.0 | 7.4.0 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-markdown-to-jsx | 7.2.0+dfsg-3 | — |
| Debian 13 | node-markdown-to-jsx | 7.2.0+dfsg-3 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | node-markdown-to-jsx | No fix yet | — |
| Ubuntu 26.04 LTS | node-markdown-to-jsx | No fix yet | — |
| Ubuntu 25.10 | node-markdown-to-jsx | No fix yet | — |
| Ubuntu 24.04 LTS | node-markdown-to-jsx | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | markdown-to-jsx | < 7.4.0 | 7.4.0 | GHSA-4wx3-54gh-9fr9 |