6.1medium
Cross site scripting in markdown-to-jsx
- Severity
- 6.1medium CVSS:3.1 by snyk
- Exploit likelihood
- 0.52% (higher than 45% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-4wx3-54gh-9fr9
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
| Product or package | Versions | Reported by |
|---|---|---|
| markdown-to-jsx | before 7.4.0 | CVE List |
| markdown-to-jsx markdown-to-jsx | before 7.4.0 | CVE List |
| markdown-to-jsx (npm) | before 7.4.0 | GitHub Advisory Database |
| quantizor markdown-to-jsx | before 7.4.0 | NVD |
All scores
| snyk | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P |
| GitHub | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Las versiones del paquete markdown-to-jsx anteriores a la 7.4.0 son vulnerables a ataques de Cross Site Scripting (XSS) a través de la propiedad src debido a una desinfección incorrecta de la entrada. Un atacante puede ejecutar código arbitrario inyectando un elemento iframe malicioso en el paquete markdown.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-21535 changed 2024-10-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4wx3-54gh-9fr9 changed 2024-10-15 | CC-BY-4.0 |
| NVD | CVE-2024-21535 changed 2026-06-17 | Public domain |