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.
Published: 2024-10-15
Score: 6.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

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

Fri, 11 Jul 2025 13:45:00 +0000

Type Values Removed Values Added
Metrics epss

{'score': 0.00035}

epss

{'score': 0.00039}


Thu, 17 Oct 2024 21:00:00 +0000

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

Wed, 16 Oct 2024 01:15:00 +0000

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


Tue, 15 Oct 2024 14:15:00 +0000

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'}


Tue, 15 Oct 2024 05:15:00 +0000

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'}


Subscriptions

Markdown-to-jsx Markdown-to-jsx
Quantizor Markdown-to-jsx
cve-icon MITRE

Status: PUBLISHED

Assigner: snyk

Published:

Updated: 2024-10-15T14:02:35.726Z

Reserved: 2023-12-22T12:33:20.123Z

Link: CVE-2024-21535

cve-icon Vulnrichment

Updated: 2024-10-15T14:02:29.656Z

cve-icon NVD

Status : Analyzed

Published: 2024-10-15T05:15:11.530

Modified: 2024-10-17T20:36:29.213

Link: CVE-2024-21535

cve-icon Redhat

Severity : Moderate

Publid Date: 2024-10-15T05:00:03Z

Links: CVE-2024-21535 - Bugzilla

cve-icon OpenCVE Enrichment

No data.

Weaknesses