GHSA-36jr-mh4h-2g58 d3-color vulnerable to ReDoS

Not scored Published

An attacker can cause a denial of service in applications using the d3-color library by triggering a Regular expression Denial of Service.

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

What is GHSA-36jr-mh4h-2g58?

GHSA-36jr-mh4h-2g58 is a denial of service vulnerability in d3-color, published on 29 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The d3-color module provides representations for various color spaces in the browser. Versions prior to 3.1.0 are vulnerable to a Regular expression Denial of Service. This issue has been patched in version 3.1.0. There are no known workarounds.

Which versions are affected by GHSA-36jr-mh4h-2g58?

2 open source packages ship an affected version, including d3-color.

PackageAffectedFixed in
d3-color npmFrom 1.0.23.1.0
d3-color npmFrom 1.0.23.1.0

How do I fix GHSA-36jr-mh4h-2g58?

Upgrade d3-color to 3.1.0 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-36jr-mh4h-2g58 being exploited?

There is no known exploitation of GHSA-36jr-mh4h-2g58 in the wild and no public exploit code.

Sources

Is GHSA-36jr-mh4h-2g58 in your software?

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

Check your SBOMs for free