CVE-2018-25110

Regular Expression Denial of Service (ReDoS) in markedjs/marked

Published May 23, 2025 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2018-21603 Marked allows Regular Expression Denial of Service (ReDoS) attacks
Github GHSA Github GHSA GHSA-p9wx-2529-fp83 Marked allows Regular Expression Denial of Service (ReDoS) attacks
History
Type Values Removed Values Added
First Time appeared Marked Project
Marked Project marked
CPEs cpe:2.3:a:marked_project:marked:*:*:*:*:*:node.js:*:*
Vendors & Products Marked Project
Marked Project marked
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
References
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Regular Expression Denial of Service (ReDoS) in markedjs/marked
Weaknesses CWE-1333
References
Metrics cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
Checkmarx
Published
Updated
May 23, 2025, 3:09 PM
Reserved
May 19, 2025, 5:17 PM
Status
Analyzed
Published
May 23, 2025, 3:15 PM
Modified
Jun 17, 2026, 1:54 AM