Security advisory
Marked prior to version 0.3.17 is vulnerable to a Regular Expression Denial of Service (ReDoS) attack due to catastrophic backtracking in several regular expressions used for parsing HTML tags and markdown links. An attacker can exploit this vulnerability by providing specially crafted markdown input, such as deeply nested or repetitively structured brackets or tag attributes, which cause the parser to hang and lead to a Denial of Service.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-25110
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 10:29 UTC · Revision 1
Source evidence
Marked prior to version 0.3.17 is vulnerable to a Regular Expression Denial of Service (ReDoS) attack due to catastrophic backtracking in several regular expressions used for parsing HTML tags and markdown links. An attacker can exploit this vulnerability by providing specially crafted markdown input, such as deeply nested or repetitively structured brackets or tag attributes, which cause the parser to hang and lead to a Denial of Service.
osv:CVE-2018-25110
Complete source record
{
"id": "54f1328347c108f9ee9f4423fec82fb0d0422650ae9dc477d1a6a77c71f02269",
"url": "https://osv.dev/vulnerability/CVE-2018-25110",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-25110",
"summary": "Marked prior to version 0.3.17 is vulnerable to a Regular Expression Denial of Service (ReDoS) attack due to catastrophic backtracking in several regular expressions used for parsing HTML tags and markdown links. An attacker can exploit this vulnerability by providing specially crafted markdown input, such as deeply nested or repetitively structured brackets or tag attributes, which cause the parser to hang and lead to a Denial of Service.",
"evidence": "osv:CVE-2018-25110",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2018-25110",
"aliases": [
"CVE-2018-25110",
"GHSA-p9wx-2529-fp83"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/markedjs/marked",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "4252cad46232530a87215aa32d30a97f20b3c44f"
},
{
"fixed": "20bfc106013ed45713a21672ad4a34df94dcd485"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:marked_project:marked:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.3.17"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "20bfc106013ed45713a21672ad4a34df94dcd485"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"0.3.15",
"0.3.14",
"v0.3.12",
"0.3.9",
"v0.3.7",
"v0.3.6",
"v0.3.5",
"v0.3.4",
"v0.3.3",
"v0.3.2",
"v0.3.1",
"v0.3.0",
"v0.2.10",
"v0.2.9",
"v0.2.8",
"v0.2.7",
"v0.2.6",
"v0.2.5",
"v0.2.4",
"v0.2.3",
"v0.2.2",
"v0.2.1",
"v0.2.0",
"v0.1.9",
"v0.1.8",
"v0.1.7",
"v0.1.6",
"v0.1.5",
"v0.1.4",
"v0.1.3",
"v0.1.2",
"v0.1.1",
"v0.1.0",
"v0.0.9",
"v0.0.8",
"v0.0.7",
"v0.0.6",
"v0.0.5",
"v0.0.4",
"v0.0.3",
"v0.0.2",
"v0.0.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-25110.json"
}
}
],
"modified": "2026-10-20T10:50:25.505685143Z",
"provider": "osv",
"references": [
"https://github.com/markedjs/marked/issues/1070",
"https://github.com/markedjs/marked/commit/20bfc106013ed45713a21672ad4a34df94dcd485",
"https://github.com/markedjs/marked/pull/1083",
"https://github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2018/CVE-2018-25110"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2018-25110",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 381703,
"published_at": "2025-05-23T15:15:20.21+00:00"
}