GHSA-xf5p-87ch-gxw2 Marked ReDoS due to email addresses being evaluated in quadratic time

Not scored Published

Attackers can cause resource exhaustion and crash the application by submitting specially crafted email addresses to the marked library.

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

What is GHSA-xf5p-87ch-gxw2?

GHSA-xf5p-87ch-gxw2 is a denial of service vulnerability in marked, published on 5 Jun 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Versions of marked from 0.3.14 until 0.6.2 are vulnerable to Regular Expression Denial of Service. Email addresses may be evaluated in quadratic time, allowing attackers to potentially crash the node process due to resource exhaustion.

Recommendation

Upgrade to version 0.6.2 or later.

Which versions are affected by GHSA-xf5p-87ch-gxw2?

2 open source packages ship an affected version, including marked.

PackageAffectedFixed in
marked npmFrom 0.3.140.6.2
marked npmFrom 0.3.140.6.2

How do I fix GHSA-xf5p-87ch-gxw2?

Upgrade marked to 0.6.2 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 GHSA-xf5p-87ch-gxw2 being exploited?

There is no known exploitation of GHSA-xf5p-87ch-gxw2 in the wild and no public exploit code.

Sources

Is GHSA-xf5p-87ch-gxw2 in your software?

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

Check your SBOMs for free