Regular Expression Denial of Service (ReDoS) in markedjs/marked
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-1333.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | marked | before 0.3.17 | 0.3.17 | Patch available | CNA |
| — | marked (npm) | before 0.3.17 | 0.3.17 | Patch available | GHSA-p9wx-2529-fp83 |
- marked Vendor— Affected before 0.3.17 Fixed in 0.3.17 Patch available CNA
- marked (npm) Vendor— Affected before 0.3.17 Fixed in 0.3.17 Patch available GHSA-p9wx-2529-fp83
Remediation
- Fix · CNA marked Fixed in 0.3.17
- Fix · GHSA-p9wx-2529-fp83 marked (npm) Fixed in 0.3.17 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2018-25110
- 2026-10-03 Alias added: GHSA-p9wx-2529-fp83
References
Exploit 1
Patch 2
Advisory 2
More markedjs Marked vulnerabilities
- TI-2026-30197 Marked: OOM Denial of Service via Infinite Recursion in marked Tokenizer CVSS 4.0HIGH 8.7
- TI-2022-06057 Exponential catastrophic backtracking (ReDoS) in marked CVSS 3.1HIGH 7.5
- TI-2022-06056 Cubic catastrophic backtracking (ReDoS) in marked CVSS 3.1HIGH 7.5
- TI-2015-07284 The marked package before 0.3.4 for Node.js allows attackers to cause a denial of service… CVSS 3.1HIGH 7.5
- TI-2021-04406 Denial of Service in Marked CVSS 3.1HIGH 7.5
- TI-2017-11833 Uncontrolled resource consumption in HackerOne marked node module CVSS 3.0HIGH 7.5
Sources
- CVE-2018-25110 · CVE Program
- CVE-2018-25110 · NVD
- FIRST EPSS
- GHSA-p9wx-2529-fp83 · GitHub Advisory Database · CC BY 4.0
- CVE-2018-25110 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences