---
title: "GHSA-px4h-xg32-q955: ReDoS in normalize-url"
description: "High severity. ReDoS in normalize-url. Affects normalize-url; fixed in 6.0.1."
url: https://inlinr.com/advisories/GHSA-px4h-xg32-q955
lang: en
---

[Packages](https://inlinr.com/packages) / [normalize-url](https://inlinr.com/packages/normalize-url) / [Security](https://inlinr.com/packages/normalize-url/security)

High Vulnerability GHSA-px4h-xg32-q955 CVE-2021-33502 Published 8 Jun 2021

# ReDoS in normalize-url

Your version 

Affected releases · [normalize-url](https://inlinr.com/packages/normalize-url)

- 6.x 6.0.0 Fixed in 6.0.1
- 5.x 5.0.0 – 5.3.0 Fixed in 5.3.1
- 4.x 4.3.0 – 4.5.0 Fixed in 4.5.1

On 6.x, the newest line:

```
npm install normalize-url@6.0.1
```

Every release on a timeline

10.x 

1. Not affected

10.0.0  
1 release, latest

6.x 

1. Affected

6.0.0  
1 release
2. Fixed

6.0.1 – 6.1.0  
2 releases

5.x 

1. Affected

5.0.0 – 5.3.0  
5 releases
2. Fixed

5.3.1  
1 release

4.x 

1. Not affected

4.0.0 – 4.2.0  
3 releases
2. Affected

4.3.0 – 4.5.0  
4 releases
3. Fixed

4.5.1  
1 release

58 stable releases of normalize-url, oldest to newest, one row per major.

## What happens

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.

## How it is exploited

Exploitable over the network, with no account and no action from a user.

- **Confidentiality**: none
- **Integrity**: none
- **Availability**: high

CVSS:3.1/​AV:N/​AC:L/​PR:N/​UI:N/​S:U/​C:N/​I:N/​A:H

## References

- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2021-33502 "https://nvd.nist.gov/vuln/detail/CVE-2021-33502")  
nvd.nist.gov/vuln/detail/CVE-2021-33502
- [Fix commit](https://github.com/sindresorhus/normalize-url/commit/b1fdb5120b6d27a88400d8800e67ff5a22bd2103 "https://github.com/sindresorhus/normalize-url/commit/b1fdb5120b6d27a88400d8800e67ff5a22bd2103")  
b1fdb51
- [Package](https://github.com/sindresorhus/normalize-url "https://github.com/sindresorhus/normalize-url")  
github.com/sindresorhus/normalize-url
- [Reference](https://github.com/sindresorhus/normalize-url/releases/tag/v6.0.1 "https://github.com/sindresorhus/normalize-url/releases/tag/v6.0.1")  
github.com/sindresorhus/normalize-url/releases/…
- [Reference](https://security.netapp.com/advisory/ntap-20210706-0001 "https://security.netapp.com/advisory/ntap-20210706-0001")  
security.netapp.com/advisory/ntap-20210706-0001

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
