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: audit package mismatch in special case #5923

Merged
merged 1 commit into from Dec 7, 2022

Conversation

fritzy
Copy link
Contributor

@fritzy fritzy commented Dec 7, 2022

npm audit fix --force might get and Audit Report where the fix was different from the package that was vulnerable if a parent package update resolved the vulnerability, but the command assumed that the package would be the same.

There's still an issue where the the solution might be different for duped packages in this case, so audit fix --force would have to be run twice since the AuditReport object doesn't duplicate vulnerable packages at multiple locations.

Closes #5750

@fritzy fritzy requested a review from a team as a code owner December 7, 2022 02:23
@lukekarrys lukekarrys merged commit 83fb125 into latest Dec 7, 2022
@lukekarrys lukekarrys deleted the fritzy/audit-fix-mismatch branch December 7, 2022 19:35
@github-actions github-actions bot mentioned this pull request Dec 7, 2022
@github-actions github-actions bot mentioned this pull request Oct 6, 2023
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.

[BUG] npm audit fix --force tries to download non-existing packages
2 participants