---
title: "GHSA-jchw-25xp-jwwc: Follow Redirects improperly handles URLs in the url.parse() function"
description: "Moderate severity. Follow Redirects improperly handles URLs in the url.parse() function. Affects follow-redirects; fixed in 1.15.4."
url: https://inlinr.com/advisories/GHSA-jchw-25xp-jwwc
lang: en
---

[Packages](https://inlinr.com/packages) / [follow-redirects](https://inlinr.com/packages/follow-redirects) / [Security](https://inlinr.com/packages/follow-redirects/security)

Moderate Vulnerability GHSA-jchw-25xp-jwwc CVE-2023-26159 Published 2 Jan 2024

# Follow Redirects improperly handles URLs in the url.parse() function

Your version 

Affected releases · [follow-redirects](https://inlinr.com/packages/follow-redirects)

- 1.x 1.0.0 – 1.15.3 Fixed in 1.15.4
- 0.3.x and older 0.0.1 – 0.3.0 No fix, no longer updated

On 1.x, the newest line:

```
npm install follow-redirects@1.15.4
```

Every release on a timeline

1.x 

1. Affected

1.0.0 – 1.15.3  
52 releases
2. Fixed

1.15.4 – 1.16.3  
12 releases, latest

0.x 

1. Affected

0.0.1 – 0.3.0  
10 releases

74 stable releases of follow-redirects, oldest to newest, one row per major.

## What happens

Versions of the package follow-redirects before 1.15.4 are vulnerable to Improper Input Validation due to the improper handling of URLs by the url.parse() function. When new URL() throws an error, it can be manipulated to misinterpret the hostname. An attacker could exploit this weakness to redirect traffic to a malicious site, potentially leading to information disclosure, phishing attacks, or other security breaches.

## How it is exploited

Exploitable over the network, with no account and a user to do something.

- **Confidentiality**: low
- **Integrity**: low
- **Availability**: none

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

## References

- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2023-26159 "https://nvd.nist.gov/vuln/detail/CVE-2023-26159")  
nvd.nist.gov/vuln/detail/CVE-2023-26159
- [Issue](https://github.com/follow-redirects/follow-redirects/issues/235 "https://github.com/follow-redirects/follow-redirects/issues/235")  
#235
- [Pull request](https://github.com/follow-redirects/follow-redirects/pull/236 "https://github.com/follow-redirects/follow-redirects/pull/236")  
#236
- [Fix commit](https://github.com/follow-redirects/follow-redirects/commit/7a6567e16dfa9ad18a70bfe91784c28653fbf19d "https://github.com/follow-redirects/follow-redirects/commit/7a6567e16dfa9ad18a70bfe91784c28653fbf19d")  
7a6567e
- [Package](https://github.com/follow-redirects/follow-redirects "https://github.com/follow-redirects/follow-redirects")  
github.com/follow-redirects/follow-redirects
- [Reference](https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZZ425BFKNBQ6AK7I5SAM56TWON5OF2XM "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZZ425BFKNBQ6AK7I5SAM56TWON5OF2XM")  
lists.fedoraproject.org/archives/list/package-a…
- [Reference](https://security.netapp.com/advisory/ntap-20241108-0002 "https://security.netapp.com/advisory/ntap-20241108-0002")  
security.netapp.com/advisory/ntap-20241108-0002
- [Reference](https://security.snyk.io/vuln/SNYK-JS-FOLLOWREDIRECTS-6141137 "https://security.snyk.io/vuln/SNYK-JS-FOLLOWREDIRECTS-6141137")  
security.snyk.io/vuln/SNYK-JS-FOLLOWREDIRECTS-6…

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.
