Repository navigation
chore(deps): fix all open Dependabot security alerts - #221
Merged
Merged
Conversation
- axios ^1.20.0 (HTTP/2 DoS, header injection, proxy bypass, SSRF) - qs ^6.16.0 (arrayLimit bypass, isBuffer DoS) - vitest / @vitest/coverage-v8 ^4.1.11 (mocker path traversal) - lockfile refresh for transitive deps: handlebars 4.7.10, brace-expansion 5.0.12, fast-uri 3.1.8, js-yaml 4.3.2, source-map-js 1.2.2, @humanfs/node 0.16.8 axios 1.20 returns a conditional type from instance methods, so the AxiosRequest wrapper now passes the response type explicitly. npm audit: 0 vulnerabilities. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T7dftAvcbeGA1hbzBA7ojf
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
Resolves all 11 open vulnerabilities reported by
npm audit(1 critical, 5 high, 5 moderate) → 0 vulnerabilities.Direct dependencies
axios→^1.20.0(HTTP/2 DoS, header injection, NO_PROXY CIDR bypass, fetch-adapter redirect SSRF, prototype-pollution gadget)qs→^6.16.0(arrayLimit bypass, isBuffer DoS)vitest/@vitest/coverage-v8→^4.1.11(path traversal via@vitest/mocker)Transitive (lockfile only)
Code change
axios 1.20 changed instance method return types to a conditional type (
AxiosResponseResult), which broke compilation ofAxiosRequestinsrc/request.ts. The wrapper now passes the response type explicitly (this.instance.get<any, R>(...) as Promise<R>). Types only — runtime behavior is unchanged.Note on the lockfile
npm 10.9.4 crashes when updating
vitestand@vitest/coverage-v8together (Cannot read properties of null (reading 'edgesOut'), an arborist peer-set bug), so the lockfile was regenerated with npm 11. A cleannpm ciwith npm 10 / Node 22 (as used in CI) installs it without issues.Test plan
npm ci(npm 10, Node 22)npm audit→ 0 vulnerabilitiesnpm run buildnpm run lintnpm test→ 1371 tests passed🤖 Generated with Claude Code
https://claude.ai/code/session_01T7dftAvcbeGA1hbzBA7ojf
Generated by Claude Code