Skip to content

Conversation

@pvditto
Copy link
Contributor

@pvditto pvditto commented Dec 3, 2025

Resolves vulnerabilities.

@pvditto pvditto self-assigned this Dec 3, 2025
@pvditto pvditto marked this pull request as ready for review December 3, 2025 10:49
Copilot AI review requested due to automatic review settings December 3, 2025 10:49
@pvditto pvditto requested a review from konstantinbe as a code owner December 3, 2025 10:49
@pvditto pvditto changed the title Upgrade lock files to exclude insecure deps Upgrade JS lock files to exclude insecure deps Dec 3, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

Files not reviewed (3)
  • javascript-tui/package-lock.json: Language not supported
  • javascript-web/package-lock.json: Language not supported
  • react-native-expo/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@teodorciuraru teodorciuraru left a comment

Choose a reason for hiding this comment

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

How do we ensure that when we remove locks, we don't reintroduce the vulnerabilities? Don't we need resolution {} blocks for the package.json's and NPM equivalents too?

@pvditto
Copy link
Contributor Author

pvditto commented Dec 3, 2025

@teodorciuraru the vulnerabilities only existed in the lock files, installing deps without lock files would not reintroduce them because our direct dependencies don't restrict these transitive dependencies to vulnerable versions. If that was not the case we would see resolution fail when bumping the lock file version of the affected packages. Overrides/resolutions are only needed when you want to forcibly override a dependency's explicit requirement for a vulnerable version

Generally, I would not delete lock files ever to recreate them, unless absolutely necessary. And if that is done, NPM always audits resolved dependencies and displays a warning when any of the installed versions have known vulnerabilities. This warning should never be ignored by us, and will also create a dependabot alert when merged.

@pvditto pvditto merged commit 4f1fded into main Dec 5, 2025
20 checks passed
@pvditto pvditto deleted the pv/js-security-fixes branch December 5, 2025 18:58
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.

3 participants