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

Update dependency higher-up the tree? #323

Open
christian-schwaderer opened this issue Feb 13, 2024 · 1 comment
Open

Update dependency higher-up the tree? #323

christian-schwaderer opened this issue Feb 13, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@christian-schwaderer
Copy link

This is rather a suggestion than an issue.

Today, yarn audit failed warning me about GHSA-78xj-cgh5-2h22 in mongodb>socks>ip

Running npx yarn-audit-fix ended in

Can't find satisfactory version for ip <0.0.0
Upgraded deps: <none>

However, there is actually a solution. Upgrading socks to version 2.7.3 because that package does not contain the vulnerable ip package anymore at all.

I don't know if such things would be too sophisticated, but if yarn-audit-fix could do such things automatically it would make it even better :)

@christian-schwaderer christian-schwaderer changed the title Update higher dependency? Update dependency higher-up the tree? Feb 13, 2024
@antongolub antongolub added the enhancement New feature or request label Feb 13, 2024
@antongolub
Copy link
Owner

antongolub commented Feb 13, 2024

@ christian-schwaderer,

I'm afraid, npm advisory api does not provides this kind of suggestions right now. Well, technically we can pick the dependents, then brute force up the permissible range to find a versions w/o own direct vulnerable deps. But, just imagine, if the mentioned socks brought a new dep1 with dep2 with dep3, which if resolved at the current project, will bring back the vulnerable ip or smth else.

It's like a combinatorial explosion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants