Skip to content

Conversation

@yisyang
Copy link

@yisyang yisyang commented Sep 18, 2025

By submitting a PR to this repository, you agree to the terms within the Auth0 Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.

Description

This PR upgrades jose dependency from 4.15.4 to 6.1.0 in order to resolve a high score CVE CVE-2025-45767

Resolves #443

Note changes will require later version of Node.js.

As mentioned by lotmek quoting jose specifications, it is now possible to import ESM packages from CommonJS using require(esm) by default in the latest Node.js versions:

^20.19.0
^22.12.0
>= 23.0.0

References

jwks-rsa has high score vulnerability from jose dependency #443

Testing

  • This change adds test coverage for new/changed/fixed functionality
  • Manual testing in live environment that uses Next.js that integrates against browser SPA OAuth flow (PKCE + jwks URI).

Checklist

  • I have added documentation for new/changed functionality in this PR or in auth0.com/docs
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used, if not the default branch

Important Notes

  • jwks-rsa converted to ESM, a new build process is added (by rollup package) to release packaged dist/index.js
  • downstream Jest test will needs custom mock to work (see README > Known Issues)

@yisyang yisyang requested a review from a team as a code owner September 18, 2025 20:46
@yisyang

This comment was marked as resolved.

@yisyang yisyang changed the title Upgrade jose from 4.15.4 to 6.1.0 NOT READY - Upgrade jose from 4.15.4 to 6.1.0 Sep 19, 2025
@yisyang
Copy link
Author

yisyang commented Sep 19, 2025

Results:

  • jwks-rsa converted to ESM
  • jose upgraded to 6.1.0
  • All tests passing
  • Downstream NestJS app launches, login works
  • Downstream Jest test needs custom mock to work (see README > Known Issues)

@yisyang yisyang changed the title NOT READY - Upgrade jose from 4.15.4 to 6.1.0 Upgrade jwks-rsa to ESM and jose from 4.15.4 to 6.1.0 Sep 19, 2025
@radioflyer-sbs
Copy link

Is there any movement on this? We're literally waiting on this PR to go through to resolve our vulnerability issue. If this isn't going somewhere, we'll have to look for other means.

@yisyang
Copy link
Author

yisyang commented Sep 26, 2025

@stevenwong-okta @auth0/project-dx-sdks-engineer-codeowner

@tylor-metrics
Copy link

Watching for this change to hit as well.

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.

jwks-rsa has high score vulnerability from jose dependency

3 participants