CVE-2021-33502 ReDoS in normalize-url

High 7.5 Published Updated

Attackers can cause denial of service in applications using the normalize-url package by submitting specially crafted data URLs.

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-33502?

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

Official description

The normalize-url package before 4.5.1, 5.x before 5.3.1, and 6.x before 6.0.1 for Node.js has a ReDoS (regular expression denial of service) issue because it has exponential performance for data: URLs.

Weakness: CWE-1333

Which versions are affected by CVE-2021-33502?

6 open source packages ship an affected version, including normalize-url. It affects 1 product.

PackageAffectedFixed in
normalize-url npmFrom 4.3.04.5.1
normalize-url npmFrom 4.3.04.5.1
normalize-url npmFrom 5.0.05.3.1
normalize-url npmFrom 5.0.05.3.1
normalize-url npmFrom 6.0.06.0.1
normalize-url npmFrom 6.0.06.0.1

Products include Normalize-Url Project Normalize-Url.

How do I fix CVE-2021-33502?

Upgrade normalize-url to a fixed version for your release line: 4.5.1, 5.3.1 or 6.0.1.

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-33502 being exploited?

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

Sources

Also known as AZL-44850, DEBIAN-CVE-2021-33502, GHSA-px4h-xg32-q955, UBUNTU-CVE-2021-33502.

Is CVE-2021-33502 in your software?

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

Check your SBOMs for free