Medium
node-markdown-to-jsx — security advisory
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.
- Products
- node-markdown-to-jsx
- Affected versions
- 7.2.0+dfsg-2, 7.2.0+dfsg-3, 7.2.0+dfsg-4
- Fixed versions
- Not specified
- CVEs
- CVE-2024-21535
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:06 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2024-21535
node-markdown-to-jsx
Fixed versions: Not specified
node-markdown-to-jsx
Fixed versions: Not specified
node-markdown-to-jsx
Fixed versions: Not specified
node-markdown-to-jsx
Fixed versions: Not specified
Complete source record
{
"id": "d877f6cd8255a4a887c458708df65adae4498abc9c546af8964c06500010b00c",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2024-21535",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2024-21535",
"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.",
"evidence": "osv:UBUNTU-CVE-2024-21535",
"products": [
{
"name": {
"value": "node-markdown-to-jsx",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "7.2.0+dfsg-2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "node-markdown-to-jsx",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "7.2.0+dfsg-2",
"evidence": "/affected/1/versions"
},
{
"value": "7.2.0+dfsg-3",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "node-markdown-to-jsx",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "7.2.0+dfsg-3",
"evidence": "/affected/2/versions"
},
{
"value": "7.2.0+dfsg-4",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "node-markdown-to-jsx",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "7.2.0+dfsg-3",
"evidence": "/affected/3/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2024-21535",
"aliases": [
"UBUNTU-CVE-2024-21535"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-markdown-to-jsx",
"purl": "pkg:deb/ubuntu/node-markdown-to-jsx?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"7.2.0+dfsg-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-21535.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-markdown-to-jsx",
"binary_version": "7.2.0+dfsg-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-markdown-to-jsx",
"purl": "pkg:deb/ubuntu/node-markdown-to-jsx?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"7.2.0+dfsg-2",
"7.2.0+dfsg-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-21535.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-markdown-to-jsx",
"binary_version": "7.2.0+dfsg-3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-markdown-to-jsx",
"purl": "pkg:deb/ubuntu/node-markdown-to-jsx?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"7.2.0+dfsg-3",
"7.2.0+dfsg-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-21535.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-markdown-to-jsx",
"binary_version": "7.2.0+dfsg-4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-markdown-to-jsx",
"purl": "pkg:deb/ubuntu/node-markdown-to-jsx?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"7.2.0+dfsg-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-21535.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-markdown-to-jsx",
"binary_version": "7.2.0+dfsg-3"
}
]
}
}
],
"modified": "2026-10-17T12:56:29.967452435Z",
"provider": "osv",
"upstream": [
"CVE-2024-21535"
],
"references": [
"https://ubuntu.com/security/CVE-2024-21535",
"https://www.cve.org/CVERecord?id=CVE-2024-21535",
"https://security.snyk.io/vuln/SNYK-JS-MARKDOWNTOJSX-6258886",
"https://github.com/quantizor/markdown-to-jsx/commit/8eb74da825c0d8d2e9508d73c672bcae36ba555a"
]
},
"related_cves": [
{
"value": "CVE-2024-21535",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 355743,
"published_at": "2024-10-15T05:15:00+00:00"
}