CVE-2024-21535
JSON

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 packageVersionsReported by
markdown-to-jsxbefore 7.4.0CVE List
markdown-to-jsx markdown-to-jsxbefore 7.4.0CVE List
markdown-to-jsx (npm)before 7.4.0GitHub Advisory Database
quantizor markdown-to-jsxbefore 7.4.0NVD

All scores

snyk6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P
GitHub6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

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

SourceRecordLicence
CVE ListCVE-2024-21535 changed 2024-10-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-4wx3-54gh-9fr9 changed 2024-10-15CC-BY-4.0
NVDCVE-2024-21535 changed 2026-06-17Public domain