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

Medium 6.9 Published Updated

An attacker can cause a denial of service in applications using the marked library by submitting specially crafted markdown input that triggers catastrophic backtracking.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-25110?

CVE-2018-25110 is a medium-severity denial of service vulnerability in marked_project:marked, published on 23 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-1333

Which versions are affected by CVE-2018-25110?

2 open source packages ship an affected version, including marked. It affects 1 product.

PackageAffectedFixed in
marked npmAll versions0.3.17
marked npmAll versions0.3.17

Products include Marked Project Marked.

How do I fix CVE-2018-25110?

Upgrade marked to 0.3.17 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2018-25110 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-25110 exists.

Sources

Also known as DEBIAN-CVE-2018-25110, GHSA-p9wx-2529-fp83, UBUNTU-CVE-2018-25110.

Is CVE-2018-25110 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free