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: vulnerable packages #1123

Merged
merged 3 commits into from
Jul 8, 2024
Merged

fix: vulnerable packages #1123

merged 3 commits into from
Jul 8, 2024

Conversation

amarbardolia
Copy link
Contributor

@amarbardolia amarbardolia commented Jul 2, 2024

release-it has transitive dependency on ip package (https://github.com/indutny/node-ip) which was recently reported as vulnerable.

Here is the description of the dependabot alert raised by GitHub on one of our private repos which uses release-it

The ip package through 2.0.1 for Node.js might allow SSRF because some IP addresses (such as 127.1, 01200034567, 012.1.2.3, 000:0:0000::01, and ::fFFf:127.0.0.1) are improperly categorized as globally routable via isPublic. NOTE: this issue exists because of an incomplete fix for GHSA-78xj-cgh5-2h22.

pac-resolver and socks packages were upgraded to get rid of ip package

TooTallNate/proxy-agents#281
JoshGlazebrook/socks#94

Alongside also upgraded vulnerable braces package to 3.0.3

@webpro
Copy link
Collaborator

webpro commented Jul 2, 2024

Thanks @amarbardolia! Shouldn't there be a change in package.json to make the override more explicit?

@amarbardolia
Copy link
Contributor Author

amarbardolia commented Jul 2, 2024

@webpro Thanks for the review. I can't think of a reason to update package.json file. And FYI the changes I added were the outcome of npm audit fix. Let me know if you still think there should be a change in package.json file with a snippet and would be happy to submit it.

@webpro
Copy link
Collaborator

webpro commented Jul 3, 2024

@amarbardolia
Copy link
Contributor Author

amarbardolia commented Jul 3, 2024

@webpro you mean we should add overrides in our repo's package.json instead of updating release-it repo?

@webpro
Copy link
Collaborator

webpro commented Jul 4, 2024

No, in the package.json of release-it itself, so the package manager knows about it. The lockfile isn't published!

@amarbardolia
Copy link
Contributor Author

@webpro Thanks. Added overrides for vulnerable packages.

@webpro
Copy link
Collaborator

webpro commented Jul 8, 2024

pac-resolver and socks packages were upgraded to get rid of ip package

TooTallNate/proxy-agents#281 JoshGlazebrook/socks#94

Thanks!

Alongside also upgraded vulnerable braces package to 3.0.3

Why did you upgrade braces and why is it in overrides? It doesn't seem to be using ip.

We could upgrade it, but seems to me it's a different thing that's not supposed to go into overrides (nor in this PR).

@amarbardolia
Copy link
Contributor Author

Thanks @webpro. I have removed braces from overrides. It was also reported as a vulnerability (unrelated to ip package) so thought to address it as a part of this PR.

@webpro
Copy link
Collaborator

webpro commented Jul 8, 2024

Sorry, we could pick that up in a separate PR if you still want?

@webpro
Copy link
Collaborator

webpro commented Jul 8, 2024

Can't we also just upgrade proxy-agent now, instead of using the overrides? See https://github.com/TooTallNate/proxy-agents/commits/main/

@webpro
Copy link
Collaborator

webpro commented Jul 8, 2024

I'll update some dependencies now and publish, then we can do another scan?

@webpro
Copy link
Collaborator

webpro commented Jul 8, 2024

Unfortunately the container package proxy-agent wasn't updated upstream.

@webpro webpro merged commit bd41d60 into release-it:main Jul 8, 2024
11 checks passed
@webpro
Copy link
Collaborator

webpro commented Jul 8, 2024

Thanks @amarbardolia!

@webpro
Copy link
Collaborator

webpro commented Jul 8, 2024

🚀 This pull request is included in v17.4.2. See Release 17.4.2 for release notes.

@amarbardolia
Copy link
Contributor Author

amarbardolia commented Jul 8, 2024

Unfortunately the container package proxy-agent wasn't updated upstream.

Yup. That's why couldn't upgrade it. Thanks @webpro for merge and release.

@amarbardolia amarbardolia deleted the vuln-fixes branch July 8, 2024 18:47
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