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 #462

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jessdelacruzsantos
Copy link

@jessdelacruzsantos jessdelacruzsantos commented Sep 5, 2024

Context

The current version of proxy-agent has the package vm2 as a dependency. vm2 has a current vulnerability found here. Unfortunately vm2 is no longer supported. The only mitigation is to upgrade proxy-agent to a version that no longer relies on vm2.

I've upgraded this dependency to the latest version.

Difference

The main differences between the old and the new proxy-agent are:

  • ProxyAgent is an attribute of the exported package
  • When creating a new ProxyAgent instance we no longer have to pass in the HTTP(S) proxy URL, it is retrieved from the environment variables.

Issues addressed

#257

@jessdelacruzsantos
Copy link
Author

@YoshiWalsh Mind taking a look at this PR or this other one that tries to address the same issue?

@jessdelacruzsantos
Copy link
Author

@jariz Please review when you have a moment

@YoshiWalsh
Copy link
Collaborator

This change looks fine to me, but I don't have the capacity to actually test it at the moment and I'm pretty hesitant to approve something I haven't tested.

@jessdelacruzsantos
Copy link
Author

This change looks fine to me, but I don't have the capacity to actually test it at the moment and I'm pretty hesitant to approve something I haven't tested.

@YoshiWalsh Would you be able to put this on another co-collaborator's radar? I think this vuln is important enough to get other people involved.

@jessdelacruzsantos jessdelacruzsantos force-pushed the jessdelacruzsantos/update_proxy-agent_dependency branch from e6496ce to f764208 Compare September 19, 2024 16:02
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.

2 participants