CVE-2021-29059 ReDOS in IS-SVG

High 7.5 Published Updated

Attackers can cause denial of service in applications using the IS-SVG library by providing crafted invalid SVG strings that trigger excessive CPU usage.

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

What is CVE-2021-29059?

CVE-2021-29059 is a high-severity denial of service vulnerability in n/a, published on 21 Jun 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A vulnerability was discovered in IS-SVG version 2.1.0 to 4.2.2 and below where a Regular Expression Denial of Service (ReDOS) occurs if the application is provided and checks a crafted invalid SVG string.

Weakness: CWE-770

Which versions are affected by CVE-2021-29059?

2 open source packages ship an affected version, including is-svg. It affects 1 product.

PackageAffectedFixed in
is-svg npmFrom 2.1.04.3.0
is-svg npmFrom 2.1.04.3.0

Products include Is-Svg Project Is-Svg.

How do I fix CVE-2021-29059?

Upgrade is-svg to 4.3.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 CVE-2021-29059 being exploited?

There is no known exploitation of CVE-2021-29059 in the wild and no public exploit code.

Sources

Also known as GHSA-r8j5-h5cx-65gg, ROOT-APP-NPM-CVE-2021-29059.

Is CVE-2021-29059 in your software?

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

Check your SBOMs for free