Skip to content
Fencer Vulns
medium 6.1

CVE-2024-21535 json

Cross site scripting in markdown-to-jsx

published 2024-10-15 2 y ago modified 2026-06-17 4 mo ago also GHSA-4wx3-54gh-9fr9 , EUVD-2024-2940

cvss
6.1
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.5%
EPSS 0.5% chance of exploitation in 30 days, percentile 44%
public exploits
0
none known

Summary

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.

Patch / fix

  • npm markdown-to-jsx 7.4.0
  • n/a markdown-to-jsx 7.4.0
  • markdown-to-jsx markdown-to-jsx 7.4.0
  • node-markdown-to-jsx Debian 14, Debian 13 7.2.0+dfsg-3

debian advisories DEBIAN-CVE-2024-21535

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-21535 updated cvss 6.1

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

  • Red Hat Migration Toolkit for Virtualization migration-toolkit-virtualization/mtv-console-plugin-rhel9
    affected: workaround, no fix available “Fix deferred”
  • Red Hat Node HealthCheck Operator workload-availability/node-remediation-console-rhel8
    affected: workaround, no fix planned “Will not fix”
  • Red Hat OpenShift Data Science (RHODS) rhods/odh-dashboard-rhel8
    affected: workaround, no fix available “Fix deferred”
  • Red Hat Multicluster Engine for Kubernetes multicluster-engine/multicluster-engine-console-mce-rhel9 Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/console-rhel8 Red Hat Developer Hub 1 rhdh/rhdh-hub-rhel9, rhdh-operator-container Red Hat OpenShift Data Science (RHODS) rhods/odh-rhel8-operator
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.52% chance of exploitation in the next 30 days, higher than 44% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P
CNA 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHub 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
npm markdown-to-jsx
<7.4.0
7.4.0

Affected products

  • n/a markdown-to-jsx
  • markdown-to-jsx markdown-to-jsx

Classification

Weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.