GHSA-wx77-rp39-c6vg Regular Expression Denial of Service in markdown

Not scored Published

Attackers can cause denial of service by submitting long strings with underscores to the markdown parser, affecting applications using this library.

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

What is GHSA-wx77-rp39-c6vg?

GHSA-wx77-rp39-c6vg is a denial of service vulnerability in markdown, published on 4 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

All versions of markdown are vulnerable to Regular Expression Denial of Service (ReDoS). The markdown.toHTML() function has significantly degraded performance when parsing long strings containing underscores. This may lead to Denial of Service if the parser accepts user input.

Recommendation

No fix is currently available. Consider using an alternative package until a fix is made available.

Which versions are affected by GHSA-wx77-rp39-c6vg?

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

PackageAffectedFixed in
markdown npmFrom 0.0.0None
markdown npmFrom 0.0.0None

How do I fix GHSA-wx77-rp39-c6vg?

No fix has been published for GHSA-wx77-rp39-c6vg yet. Limit exposure of the affected software until one is available.

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-wx77-rp39-c6vg being exploited?

There is no known exploitation of GHSA-wx77-rp39-c6vg in the wild and no public exploit code.

Sources

Is GHSA-wx77-rp39-c6vg in your software?

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

Check your SBOMs for free