---
title: "GHSA-9j49-mfvp-vmhm: Code Injection in pac-resolver"
description: "High severity. Code Injection in pac-resolver. Affects degenerator, pac-resolver; fixed in 3.0.1."
url: https://inlinr.com/advisories/GHSA-9j49-mfvp-vmhm
lang: en
---

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

High Vulnerability GHSA-9j49-mfvp-vmhm CVE-2021-23406 Published 2 Sep 2021

# Code Injection in pac-resolver

Your version of degenerator 

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

- 3.x 3.0.0 Fixed in 3.0.1
- 2.x and older 0.0.1 – 2.2.0 No fix, no longer updated

On 3.x, the newest line:

```
npm install degenerator@3.0.1
```

Every release on a timeline

7.x 

1. Not affected

7.0.0 – 7.0.2  
3 releases, latest

3.x 

1. Affected

3.0.0  
1 release
2. Fixed

3.0.1 – 3.0.4  
4 releases

2.x 

1. Affected

2.0.0 – 2.2.0  
7 releases

1.x 

1. Affected

1.0.0 – 1.0.4  
5 releases

0.x 

1. Affected

0.0.1 – 0.0.4  
4 releases

32 stable releases of degenerator, oldest to newest, one row per major.

Your version of pac-resolver 

Affected releases · [pac-resolver](https://inlinr.com/packages/pac-resolver)

- 4.x and older 0.0.1 – 4.2.0 No fix, no longer updated

4.x has no fix yet; the newest fixed line:

```
npm install pac-resolver@5.0.0
```

Every release on a timeline

9.x 

1. Not affected

9.0.0 – 9.0.2  
3 releases, latest

4.x 

1. Affected

4.0.0 – 4.2.0  
4 releases

3.x 

1. Affected

3.0.0  
1 release

2.x 

1. Affected

2.0.0  
1 release

1.x 

1. Affected

1.0.0 – 1.3.0  
10 releases

0.x 

1. Affected

0.0.1 – 0.0.2  
2 releases

29 stable releases of pac-resolver, oldest to newest, one row per major.

## What happens

This affects the package pac-resolver before 5.0.0\. This can occur when used with untrusted input, due to unsafe PAC file handling. **NOTE:** The fix for this vulnerability is applied in the node-degenerator library, a dependency written by the same maintainer.

## How it is exploited

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

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

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

## References

- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2021-23406 "https://nvd.nist.gov/vuln/detail/CVE-2021-23406")  
nvd.nist.gov/vuln/detail/CVE-2021-23406
- [Fix commit](https://github.com/TooTallNate/node-degenerator/commit/9d25bb67d957bc2e5425fea7bf7a58b3fc64ff9e "https://github.com/TooTallNate/node-degenerator/commit/9d25bb67d957bc2e5425fea7bf7a58b3fc64ff9e")  
9d25bb6
- [Fix commit](https://github.com/TooTallNate/node-degenerator/commit/ccc3445354135398b6eb1a04c7d27c13b833f2d5 "https://github.com/TooTallNate/node-degenerator/commit/ccc3445354135398b6eb1a04c7d27c13b833f2d5")  
ccc3445
- [Reference](https://github.com/TooTallNate "https://github.com/TooTallNate")  
github.com/TooTallNate
- [Reference](https://github.com/TooTallNate/node-pac-resolver/releases/tag/5.0.0 "https://github.com/TooTallNate/node-pac-resolver/releases/tag/5.0.0")  
github.com/TooTallNate/node-pac-resolver/releas…
- [Reference](https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1568506 "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1568506")  
snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1568506
- [Reference](https://snyk.io/vuln/SNYK-JS-PACRESOLVER-1564857 "https://snyk.io/vuln/SNYK-JS-PACRESOLVER-1564857")  
snyk.io/vuln/SNYK-JS-PACRESOLVER-1564857

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.
