CVE-2018-25110: Regular Expression Denial of Service (ReDoS) in markedjs/marked

Published May 23, 2025
·
Updated

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.

Affected Software

3 affected componentsFixes available
markedjs marked<0.3.17
npm/marked<0.3.17
0.3.17
Marked Project Marked Node.js<0.3.17

Event History

May 23, 2025
CVE Published
via MITRE·02:53 PM
Data Sourced
via MITRE·02:53 PM
DescriptionWeakness
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 PM
RemedyAffected Software
Advisory Published
via GitHub·03:31 PM

Frequently Asked Questions

1

What is the severity of CVE-2018-25110?

CVE-2018-25110 has been classified as a moderate severity vulnerability due to its potential for denial of service attacks.

2

How do I fix CVE-2018-25110?

To mitigate CVE-2018-25110, upgrade the marked library to version 0.3.17 or later.

3

What is a Regular Expression Denial of Service (ReDoS) attack in CVE-2018-25110?

In CVE-2018-25110, a ReDoS attack exploits inefficient regular expressions that cause excessive backtracking, leading to performance degradation.

4

Which versions of marked are affected by CVE-2018-25110?

CVE-2018-25110 affects all versions of marked prior to 0.3.17.

5

Can an attacker exploit CVE-2018-25110 remotely?

Yes, an attacker can exploit CVE-2018-25110 remotely by sending specially crafted input that triggers the regular expression vulnerabilities.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203