Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Upgrade proxy agent #163

Merged
merged 3 commits into from
Oct 8, 2021

Conversation

mroderick
Copy link
Contributor

This PR is branched from #162, which should be merged first.


This PR upgrades transitive dependencies, allowing consumers to avoid a known vulnerability.

Background

In the transitive dependency pac-resolver there is a known vulnerability.

Solution

By upgrading proxy-agent to latest, we're also upgrading pac-proxy-agent and pac-resolver.

From reading the changelogs of proxy-agent, pac-proxy-agent and pac-resolver, it is clear that TooTallNate has been careful not to introduce any breaking changes, other than dropping support for very old node versions.

Important

By merging this, the minimum supported node version dictated by these dependencies will be 8.

There was a merge conflict marker committed to the `package-lock.json`
in  cc0de4b, which coincidentally
upgraded the project to use `lockfileVersion` of `2`.
In the transitive dependency [`pac-resolver` there is a known vulnerability][0].
By upgrading `proxy-agent` to latest, we're also upgrading `pac-proxy-agent` and
`pac-resolver`.

From reading the changelogs of `proxy-agent`, `pac-proxy-agent` and
`pac-resolver`, it is clear that TooTallNate has been careful not to introduce
any breaking changes, other than dropping support for old node versions.

* [`proxy-agent@5.0.0`][1]
* [`pac-proxy-agent@5.0.0`][2]
* [`pac-resolver@5.0.0`][3]

By merging this, the minimum supported node version dictated by these
dependencies will be 8.

[0]: GHSA-9j49-mfvp-vmhm
[1]: https://github.com/TooTallNate/node-proxy-agent/releases/tag/5.0.0
[2]: https://github.com/TooTallNate/node-pac-proxy-agent/releases/tag/5.0.0
[3]: https://github.com/TooTallNate/node-pac-resolver/releases/tag/5.0.0
@a7urag
Copy link

a7urag commented Sep 22, 2021

+1

3 similar comments
@yannick-fernand
Copy link

+1

@izumskee
Copy link

+1

@xmariopereira
Copy link

+1

@mroderick
Copy link
Contributor Author

Ping @lazywithclass

@xmariopereira
Copy link

For those who are here because of this security issue.

Here is a quick fix:

add this to your package.json

"resolutions": {
    "proxy-agent": "^5.0.0",
  },

and this to your scripts section:

`"preinstall": "npx npm-force-resolutions",`

@lazywithclass
Copy link
Owner

lazywithclass commented Oct 8, 2021

Thanks for this. I will update the module this afternoon, expect a minor version change since this might break some people's setup.

Again sorry for being late, I am swamped by uni courses.

@lazywithclass lazywithclass merged commit e88e3b8 into lazywithclass:master Oct 8, 2021
@lazywithclass
Copy link
Owner

winston-cloudwathc@3.1.0 is out with these changes. Thanks a lot for your effort.

@izumskee
Copy link

@lazywithclass thanks!

@mroderick mroderick deleted the upgrade-proxy-agent branch November 11, 2021 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants