fix(deps): resolve npm audit vulnerabilities and bump dependencies (v1.x backport) #1382
+67
−40
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.
Resolves npm audit security vulnerabilities and updates dependencies to their latest compatible versions for the v1.x release branch.
This is the backport of #1381
Motivation and Context
Running
npm auditon the v1.x branch was reporting multiple high-severity security vulnerabilities:Hono JWT vulnerabilities (GHSA-3vhc-576x-3qv4, GHSA-f67f-6cw9-8mq4):
hono<4.11.4 (transitive dependency via@hono/node-server)@hono/node-serverto ^1.19.9 and addinghono^4.11.4 as a direct dependencyqs package vulnerability:
qsoverridesto force[email protected]This PR addresses these vulnerabilities by:
@hono/node-serverto ^1.19.9hono^4.11.4 as a direct dependency (resolves Hono JWT vulnerabilities)overridesfor[email protected](resolves qs vulnerability)How Has This Been Tested?
npm auditreports 0 vulnerabilities after this changenpm test- all 1497 tests pass)npm run buildcompletes successfullyBreaking Changes
None. This is a patch release with security fixes and dependency updates only.
Types of changes
Checklist
Additional context
Security fixes:
@hono/node-server(^1.19.7 → ^1.19.9)hono(added as direct dependency at ^4.11.4 to ensure secure version)overridesfor[email protected]Dependency updates:
express(^5.0.1 → ^5.2.1)express-rate-limit(^7.5.0 → ^8.2.1)jose(^6.1.1 → ^6.1.3)zod-to-json-schema(^3.23.2 → ^3.25.1)Test fixes:
packages/client/test/client/auth-extensions.test.tsto match jose library's updated error output (changed from/Invalid character/to/cannot be part of a valid base64/)Implementation notes:
honowas added as a direct dependency instead of using npm overrides to ensure the secure version (4.11.4) is always installed, even as@hono/node-serverupdates its transitive dependencies