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

Fix vm2 vulnerability: remove superagent-proxy dependency #830

Merged
merged 5 commits into from
Aug 16, 2023

Conversation

DmitriyKirakosyan
Copy link
Contributor

@DmitriyKirakosyan DmitriyKirakosyan commented Aug 3, 2023

This PR remove the superagent-proxy package, as it's not maintained anymore and depends on the vulnerable vm2 package.
agent-proxy is used directly with superagent's Request object now.

AB#101666

@DmitriyKirakosyan DmitriyKirakosyan requested a review from a team as a code owner August 3, 2023 10:14
@@ -2,8 +2,8 @@ import superagent = require("superagent");
import { CodePushUnauthorizedError } from "../script/code-push-error"
import { CodePushError, Headers } from "../script/types";

var superproxy = require("superagent-proxy");
superproxy(superagent);
import superagent_setup from "./superagent-proxy.js";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we directly use proxy-agent here?

@DmitriyKirakosyan DmitriyKirakosyan merged commit 9980a2d into master Aug 16, 2023
2 checks passed
@DmitriyKirakosyan DmitriyKirakosyan deleted the fix/vm2 branch August 16, 2023 08:12
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