Update to latest jsonwebtoken version to address security issue in jws package - #112
Merged
Johan Broberg (pontemonti) merged 2 commits intoDec 10, 2025
Merged
Conversation
Copilot started reviewing on behalf of
Johan Broberg (pontemonti)
December 10, 2025 05:09
View session
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the jsonwebtoken package from version 9.0.2 to 9.0.3 to address a security vulnerability in the jws package, as referenced in the GitHub security advisory. The update follows the repository's centralized dependency management approach using pnpm workspace catalogs.
- Updates
jsonwebtokenfrom 9.0.2 to 9.0.3 in the catalog - Upgrades transitive dependencies:
jwsfrom 3.2.2 to 4.0.1 andjwafrom 1.4.2 to 2.0.1 - Maintains backward compatibility as this is a patch version update
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pnpm-workspace.yaml | Updates the jsonwebtoken version in the centralized catalog from ^9.0.2 to ^9.0.3 |
| pnpm-lock.yaml | Reflects the resolved dependency tree with the updated jsonwebtoken and its transitive dependencies (jws@4.0.1, jwa@2.0.1) |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
Tahir Sousa (tmlsousa)
approved these changes
Dec 10, 2025
Jesus Daniel Terrazas (JesuTerraz)
approved these changes
Dec 10, 2025
Johan Broberg (pontemonti)
deleted the
users/johanb/FixJsonWebTokenVersion
branch
December 10, 2025 17:43
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.
Update
jsonwebtokento version 9.0.3 to address this security issue with thejwspackage: https://github.com/microsoft/Agent365-nodejs/security/dependabot/24It seems because of changes to the underlying JWT parsing, this exposed an issue with the unit test, so we had to fix the mock implementation to get the correct behavior.