Repository navigation
fix(deps): bump axios to 1.20.0 and patch vulnerable transitive deps - #308
Merged
Merged
Conversation
Resolves all 35 findings of the failing Grype "Vulnerability Scan" on master: 34 axios advisories against 1.13.6 and GHSA-r4q5-vmmm-2653 against follow-redirects 1.15.11. Also takes every dev-only fix that stays within the existing semver ranges and Node support. package.json: axios ^1.13.6 -> ^1.20.0 (the only change). Runtime lockfile: - axios 1.13.6 -> 1.20.0 - follow-redirects 1.15.11 -> 1.16.1 - proxy-from-env 1.1.0 -> 2.1.0 (required by axios ^2.1.0) - new: https-proxy-agent 5.0.1, agent-base 6.0.2 (required by axios) Dev lockfile (all within the existing ranges): - @babel/* 7.2x -> 7.29.x (@babel/core 7.22.9 -> 7.29.7) - brace-expansion 1.1.11 -> 1.1.21, 2.0.1 -> 2.1.7 - js-yaml 3.14.2 -> 3.15.2, 4.1.1 -> 4.3.2 - picomatch 2.3.1 -> 2.3.2, diff 5.2.0 -> 5.2.2 - ajv 6.12.6 -> 6.15.0, underscore 1.13.6 -> 1.13.8 - browserslist 4.21.9 -> 4.28.2, node-releases 2.0.13 -> 2.0.44, jsesc 2.5.2 -> 3.1.0 (required by @babel/generator ^3.0.2), plus caniuse-lite, electron-to-chromium, update-browserslist-db and @jridgewell/* refreshes and the helper packages they add or remove No overrides, no major bump of a direct dependency, and every locked dependency's engines field admits every Node version in the CI matrix (16, 18, 20, 22, 23, 24). browserslist is held at 4.28.2 because every patched release needs node-releases >= 2.0.45, which declares node >=18. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 11, 2026
aviadhahami
enabled auto-merge
October 11, 2026 10:17
aviadhahami
disabled auto-merge
October 11, 2026 10:17
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.
Why
The Vulnerability Scan job fails on master. Grype reports 35 matches, all in runtime dependencies:
axios@1.13.6follow-redirects@1.15.11axios@1.20.0is the only release that clears all 34 axios advisories. It is the highest first-patched version among them and the current npmlatest.What changes
package.json: the only change isaxios^1.13.6→^1.20.0. It adds no overrides, no resolutions and no new direct dependencies, and leavesenginesalone. Raising the floor matters because consumers never see this lockfile; only the range reaches them.^1.16.0^2.1.0(transitive major)Version compliance
Nothing moves outside the versions we already support:
proxy-from-env2,jsesc3) are required by the declared ranges of in-range parents.enginesthat exclude a CI-matrix Node version (16, 18, 20, 22, 23, 24). The only exclusion in the lockfile is our ownnode-vault >= 18.0.0against Node 16, and master has it too.browserslistis held at 4.28.2 on purpose. Every patched release (≥ 4.28.7) needsnode-releases ≥ 2.0.51, andnode-releases2.0.45+ declaresnode >=18.npm ciandnpm installleave the lockfile byte-identical under npm 8.6 through 11.19.Verification (local; CI on this PR is the final word)
anchore/scan-action@v7pins), and 0.120.1npm audit --omit=devnpm audit(incl. dev)Only the 2 integration tests exercise real axios; the unit tests stub requests. A separate probe compared master and this branch on Node 16, 18, 20, 22 and 24 across 52 scenarios: token and namespace headers, TLS (strictSSL, CA, mTLS), Vault HA 307 redirects, proxies and timeouts. Without a proxy the behaviour is identical. TypeScript consumers of
index.d.tsstill type-check against the axios 1.20 types.What users may notice (axios 1.14 → 1.20)
A fresh
npm install node-vault@0.12.0already resolves axios 1.20.0 today, because^1.13.6allows it. None of the following is new for consumers on a fresh install; it is listed so it can go into the release notes.HTTPS through
HTTPS_PROXYis now aCONNECTtunnel with end-to-end TLS, so the proxy no longer seesX-Vault-Token.CONNECTto Vault's port. Squid's defaultSSL_portsblocks 8200, and the refusal surfaces asApiResponseError: Status 403.ca/strictSSLoptions rather than by the proxy.npm_config_*proxyvariables are no longer honoured.NO_PROXYnow matches loopback aliases and CIDR ranges.Header values are sanitised. A token with a trailing newline used to throw
ERR_INVALID_CHAR; it now works.Known limitation (upstream:
https-proxy-agent5.0.1): if the HTTPS proxy closes the connection or never answersCONNECT, the request never settles, andtimeoutdoes not fire. Two workarounds:NO_PROXY;requestOptions.agentOptions.timeout, which bounds theCONNECTphase.A proper fix (passing
signal: AbortSignal.timeout(timeout)in the request wrapper) is a follow-up code change, kept out of this dependency PR.Redirect behaviour is unchanged.
X-Vault-TokenandX-Vault-Namespacestill follow cross-host 307s, which Vault HA standby redirects rely on. GHSA-r4q5-vmmm-2653 clears because the version no longer matches. The underlying fix in follow-redirects is opt-in (sensitiveHeaders), and node-vault does not opt in yet, so that exposure remains until a follow-up.Still open (all dev-only, not in the published package)
node-releasesthat declaresnode >=18; CI tests Node 16mocha@12(Node^20.19 || >=22.12) or an override to 7.x (node >=20)nyc@18(Node20 || >=22)nyc@18still pulls it inDependabot alerts go from 54 to 5 open, all development. The 8 CodeQL alerts (logging, the certificate-validation option, workflow permissions) need source changes and belong in a separate PR.
Supersedes
overridespinserialize-javascript7.x (node >=20) and its lockfile takesnode-releases2.0.58 (node >=18). Both break the Node 16/18 legs of the test matrix, and it leavespackage.jsonat^1.13.6.After merge
publish.yamlonly releases whenpackage.json's version changes. To ship the^1.20.0floor, run Update Version (patch → 0.12.1).>= 18floor), which unblocks browserslist;mocha@12/nyc@18;sensitiveHeadersopt-in;.github/dependabot.yml, whosepackage-ecosystemis empty.🤖 Generated with Claude Code