Skip to content

Update to latest jsonwebtoken version to address security issue in jws package - #112

Merged
Johan Broberg (pontemonti) merged 2 commits into
mainfrom
users/johanb/FixJsonWebTokenVersion
Dec 10, 2025
Merged

Update to latest jsonwebtoken version to address security issue in jws package#112
Johan Broberg (pontemonti) merged 2 commits into
mainfrom
users/johanb/FixJsonWebTokenVersion

Conversation

@pontemonti

@pontemonti Johan Broberg (pontemonti) commented Dec 10, 2025

Copy link
Copy Markdown
Contributor

Update jsonwebtoken to version 9.0.3 to address this security issue with the jws package: https://github.com/microsoft/Agent365-nodejs/security/dependabot/24

It 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.

Copilot AI review requested due to automatic review settings December 10, 2025 05:09
@pontemonti
Johan Broberg (pontemonti) requested a review from a team as a code owner December 10, 2025 05:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 jsonwebtoken from 9.0.2 to 9.0.3 in the catalog
  • Upgrades transitive dependencies: jws from 3.2.2 to 4.0.1 and jwa from 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

@pontemonti
Johan Broberg (pontemonti) merged commit 778f6d5 into main Dec 10, 2025
7 checks passed
@pontemonti
Johan Broberg (pontemonti) deleted the users/johanb/FixJsonWebTokenVersion branch December 10, 2025 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants