---
title: "GHSA-pfrx-2q88-qq97: Got allows a redirect to a UNIX socket"
description: "Moderate severity. Got allows a redirect to a UNIX socket. Affects got; fixed in 12.1.0."
url: https://inlinr.com/advisories/GHSA-pfrx-2q88-qq97
lang: en
---

[Packages](https://inlinr.com/packages) / [got](https://inlinr.com/packages/got) / [Security](https://inlinr.com/packages/got/security)

Moderate Vulnerability GHSA-pfrx-2q88-qq97 CVE-2022-33987 Published 19 Jun 2022

# Got allows a redirect to a UNIX socket

Your version 

Affected releases · [got](https://inlinr.com/packages/got)

- 12.x 12.0.0 – 12.0.4 Fixed in 12.1.0
- 11.x 11.0.0 – 11.8.3 Fixed in 11.8.5
- 10.x and older 0.1.0 – 10.7.0 No fix, no longer updated

On 12.x, the newest line:

```
npm install got@12.1.0
```

Every release on a timeline

16.x 

1. Not affected

16.0.0 – 16.2.0  
3 releases, latest

12.x 

1. Affected

12.0.0 – 12.0.4  
5 releases
2. Fixed

12.1.0 – 12.6.1  
12 releases

11.x 

1. Affected

11.0.0 – 11.8.3  
23 releases
2. Fixed

11.8.5 – 11.8.6  
2 releases

10.x 

1. Affected

10.0.0 – 10.7.0  
21 releases

9.x 

1. Affected

9.0.0 – 9.6.0  
12 releases

8.x 

1. Affected

8.0.0 – 8.3.2  
9 releases

7.x 

1. Affected

7.0.0 – 7.1.0  
2 releases

6.x 

1. Affected

6.0.0 – 6.7.1  
15 releases

5.x 

1. Affected

5.0.0 – 5.7.1  
15 releases

4.x 

1. Affected

4.0.0 – 4.2.0  
4 releases

3.x 

1. Affected

3.0.0 – 3.3.1  
5 releases

2.x 

1. Affected

2.0.0 – 2.9.2  
17 releases

1.x 

1. Affected

1.0.0 – 1.2.2  
6 releases

0.x 

1. Affected

0.1.0 – 0.3.0  
4 releases

188 stable releases of got, oldest to newest, one row per major.

## What happens

The got package before 11.8.5 and 12.1.0 for Node.js allows a redirect to a UNIX socket.

## How it is exploited

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

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

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

## References

- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-33987 "https://nvd.nist.gov/vuln/detail/CVE-2022-33987")  
nvd.nist.gov/vuln/detail/CVE-2022-33987
- [Pull request](https://github.com/sindresorhus/got/pull/2047 "https://github.com/sindresorhus/got/pull/2047")  
#2047
- [Fix commit](https://github.com/sindresorhus/got/commit/861ccd9ac2237df762a9e2beed7edd88c60782dc "https://github.com/sindresorhus/got/commit/861ccd9ac2237df762a9e2beed7edd88c60782dc")  
861ccd9
- [Package](https://github.com/sindresorhus/got "https://github.com/sindresorhus/got")  
github.com/sindresorhus/got
- [Reference](https://github.com/sindresorhus/got/compare/v12.0.3...v12.1.0 "https://github.com/sindresorhus/got/compare/v12.0.3...v12.1.0")  
v12.0.3...v12.1.0
- [Reference](https://github.com/sindresorhus/got/releases/tag/v11.8.5 "https://github.com/sindresorhus/got/releases/tag/v11.8.5")  
github.com/sindresorhus/got/releases/tag/v11.8.5
- [Reference](https://github.com/sindresorhus/got/releases/tag/v12.1.0 "https://github.com/sindresorhus/got/releases/tag/v12.1.0")  
github.com/sindresorhus/got/releases/tag/v12.1.0

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.
