Skip to content
OpenAdvisories
Medium · 6.1 CVE-2024-21535 EUVD-2024-2940GHSA-4wx3-54gh-9fr9

Cross site scripting in markdown-to-jsx

Published Oct 15, 2024 · Updated Oct 15, 2024 · Assigned by snyk

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

VendorProductAffectedFixed
— 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.

ReleasePackageFixed inAdvisory
Debian 14 node-markdown-to-jsx 7.2.0+dfsg-3 —
Debian 13 node-markdown-to-jsx 7.2.0+dfsg-3 —
ReleasePackageFixed inAdvisory
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

EcosystemPackageAffectedFixedRecord
npm markdown-to-jsx < 7.4.0 7.4.0 GHSA-4wx3-54gh-9fr9

References