node-markdown-it — security advisory
markdown-it is a Markdown parser. Prior to version 1.3.2, special patterns with length greater than 50 thousand characterss could slow down the parser significantly. Users should upgrade to version 12.3.2 to receive a patch. There are no known workarounds aside from upgrading.
- Products
- node-markdown-it
- Affected versions
- 10.0.0+dfsg-2, 10.0.0+dfsg-3, 10.0.0+dfsg-3.1, 10.0.0+dfsg-4, 10.0.0+dfsg-5, 10.0.0+dfsg-6, 22.2.3+dfsg+~12.2.3-2, 22.2.3+dfsg+~12.2.3-4, 22.2.3+dfsg+~12.2.3-5
- Fixed versions
- Not specified
- CVEs
- CVE-2022-21670
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:45 UTC · Revision 1
Source evidence
markdown-it is a Markdown parser. Prior to version 1.3.2, special patterns with length greater than 50 thousand characterss could slow down the parser significantly. Users should upgrade to version 12.3.2 to receive a patch. There are no known workarounds aside from upgrading.
osv:UBUNTU-CVE-2022-21670
node-markdown-it
Fixed versions: Not specified
node-markdown-it
Fixed versions: Not specified
node-markdown-it
Fixed versions: Not specified
node-markdown-it
Fixed versions: Not specified
node-markdown-it
Fixed versions: Not specified
Complete source record
{
"id": "4804491f84d7d971fdf015d447077571eab4be4feeb7d2182ade14cb568788f4",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-21670",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2022-21670",
"summary": "markdown-it is a Markdown parser. Prior to version 1.3.2, special patterns with length greater than 50 thousand characterss could slow down the parser significantly. Users should upgrade to version 12.3.2 to receive a patch. There are no known workarounds aside from upgrading.",
"evidence": "osv:UBUNTU-CVE-2022-21670",
"products": [
{
"name": {
"value": "node-markdown-it",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "10.0.0+dfsg-2",
"evidence": "/affected/0/versions"
},
{
"value": "10.0.0+dfsg-3",
"evidence": "/affected/0/versions"
},
{
"value": "10.0.0+dfsg-3.1",
"evidence": "/affected/0/versions"
},
{
"value": "10.0.0+dfsg-4",
"evidence": "/affected/0/versions"
},
{
"value": "10.0.0+dfsg-5",
"evidence": "/affected/0/versions"
},
{
"value": "10.0.0+dfsg-6",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "node-markdown-it",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "22.2.3+dfsg+~12.2.3-2",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "node-markdown-it",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "22.2.3+dfsg+~12.2.3-2",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "node-markdown-it",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "22.2.3+dfsg+~12.2.3-4",
"evidence": "/affected/3/versions"
},
{
"value": "22.2.3+dfsg+~12.2.3-5",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "node-markdown-it",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "22.2.3+dfsg+~12.2.3-2",
"evidence": "/affected/4/versions"
},
{
"value": "22.2.3+dfsg+~12.2.3-4",
"evidence": "/affected/4/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2022-21670",
"aliases": [
"UBUNTU-CVE-2022-21670"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
},
{
"type": "Ubuntu",
"score": "low"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-markdown-it",
"purl": "pkg:deb/ubuntu/node-markdown-it?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"10.0.0+dfsg-2",
"10.0.0+dfsg-3",
"10.0.0+dfsg-3.1",
"10.0.0+dfsg-4",
"10.0.0+dfsg-5",
"10.0.0+dfsg-6"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21670.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-markdown-it",
"binary_version": "10.0.0+dfsg-6"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-markdown-it",
"purl": "pkg:deb/ubuntu/node-markdown-it?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"22.2.3+dfsg+~12.2.3-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21670.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-markdown-it",
"binary_version": "22.2.3+dfsg+~12.2.3-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-markdown-it",
"purl": "pkg:deb/ubuntu/node-markdown-it?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"22.2.3+dfsg+~12.2.3-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21670.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-markdown-it",
"binary_version": "22.2.3+dfsg+~12.2.3-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-markdown-it",
"purl": "pkg:deb/ubuntu/node-markdown-it?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"22.2.3+dfsg+~12.2.3-4",
"22.2.3+dfsg+~12.2.3-5"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21670.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-markdown-it",
"binary_version": "22.2.3+dfsg+~12.2.3-5"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-markdown-it",
"purl": "pkg:deb/ubuntu/node-markdown-it?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"22.2.3+dfsg+~12.2.3-2",
"22.2.3+dfsg+~12.2.3-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21670.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-markdown-it",
"binary_version": "22.2.3+dfsg+~12.2.3-4"
}
]
}
}
],
"modified": "2026-10-17T12:56:02.155776557Z",
"provider": "osv",
"upstream": [
"CVE-2022-21670"
],
"references": [
"https://ubuntu.com/security/CVE-2022-21670",
"https://github.com/markdown-it/markdown-it/security/advisories/GHSA-6vfc-qv3f-vr6c",
"https://github.com/markdown-it/markdown-it/commit/ffc49ab46b5b751cd2be0aabb146f2ef84986101",
"https://www.cve.org/CVERecord?id=CVE-2022-21670"
]
},
"related_cves": [
{
"value": "CVE-2022-21670",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 354628,
"published_at": "2022-01-10T21:15:00+00:00"
}