[agent] chore(deps): override axios to ^1.16.0 to fix high-severity CVEs#771
Draft
github-actions[bot] wants to merge 1 commit into
Draft
[agent] chore(deps): override axios to ^1.16.0 to fix high-severity CVEs#771github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
Add npm overrides to pin axios to ^1.16.0 to resolve four high/medium severity Dependabot alerts (GHSA-3g43-6gmg-66jw, GHSA-35jp-ww65-95wh, GHSA-pjwm-pj3p-43mv, GHSA-898c-q2cr-xwhg). axios is a transitive dependency pulled in via lerna -> nx -> axios. The direct dependency (lerna@^9.0.7) depends on nx >=21.5.3 <23.0.0 and the currently resolved nx@22.6.5 pins axios@1.15.0. Since lerna has not yet shipped a release that bumps nx to a version with axios >=1.16.0, an overrides entry is the appropriate remediation. The lockfile now resolves axios to 1.16.1. Fixes alerts: #268, #269, #270, #271 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an npm
overridesentry to pinaxiosto^1.16.0, resolving four Dependabot security alerts affecting this repository.Alerts addressed
The minimum version that fixes all alerts is
1.16.0. The lockfile now resolvesaxiosto1.16.1.Why
overridesand not a direct dependency bump?axiosis a transitive dependency:lerna→nx→axios.lerna@^9.0.7(our direct dep) depends onnx >=21.5.3 <23.0.0.nx@22.6.5depends onaxios@1.15.0(vulnerable).nx@22.7.5does depend onaxios@1.16.0, butlerna@9.0.7— the latest lerna v9 release — does not pin nx to that version, and no newer lerna release is available.axios, anoverridesentry is the correct and documented npm remediation approach.Changes
package.json: added"overrides": { "axios": "^1.16.0" }package-lock.json: regenerated;node_modules/axiosnow at1.16.1