CVE-2024-21535

markdown-to-jsx: Cross-site Scripting vulnerability in markdown-to-jsx

Published Oct 15, 2024 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-2940 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.
Github GHSA Github GHSA GHSA-4wx3-54gh-9fr9 Cross site scripting in markdown-to-jsx
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00035}

epss

{'score': 0.00039}

Type Values Removed Values Added
First Time appeared Quantizor
Quantizor markdown-to-jsx
CPEs cpe:2.3:a:quantizor:markdown-to-jsx:*:*:*:*:*:*:*:*
Vendors & Products Quantizor
Quantizor markdown-to-jsx
Type Values Removed Values Added
Title markdown-to-jsx: Cross-site Scripting vulnerability in markdown-to-jsx
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Markdown-to-jsx
Markdown-to-jsx markdown-to-jsx
CPEs cpe:2.3:a:markdown-to-jsx:markdown-to-jsx:*:*:*:*:*:*:*:*
Vendors & Products Markdown-to-jsx
Markdown-to-jsx markdown-to-jsx
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
snyk
Published
Updated
Oct 15, 2024, 2:02 PM
Reserved
Dec 22, 2023, 12:33 PM
Status
Analyzed
Published
Oct 15, 2024, 5:15 AM
Modified
Jun 17, 2026, 7:09 AM
Severity
Moderate
Public date
Oct 15, 2024, 5:00 AM