jose
6.2.18 · 18 Nov 2026MIT244.2M / weekRepositorynpmAtom feed
Upgrading jose From 1.25.0 to 2.0.7
19 releases in betweenevery note read
Reading releases, release notes and advisories…
Before you upgrade
Tick each one off as you go- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
Security
Fixes 3 advisories affecting 1.25.0
- Padding Oracle Attack due to Observable Timing Discrepancy in josemoderate · GHSA-58f5-hfqc-jgch
- jose vulnerable to resource exhaustion via specifically crafted JWE with compressed plaintextmoderate · GHSA-hhhv-q57g-882q
- JOSE vulnerable to resource exhaustion via specifically crafted JWEmoderate · GHSA-jv3g-j58f-9mq9
- 2.0.7
Add a maxOutputLength option to zlib inflate (02a6579), fixes CVE-2024-28176
- 2.0.5
Defer AES CBC w/ HMAC decryption after tag verification passes (812e03f), fixes CVE-2021-29443
- 1.28.1
Defer AES CBC w/ HMAC decryption after tag verification passes (08e1bc5), fixes CVE-2021-29443
Release by release
- Security
Add a maxOutputLength option to zlib inflate (02a6579), fixes CVE-2024-28176
- Security
- Fixed
Limit default PBES2 alg's computational expense
- Fixed
- Security
Defer AES CBC w/ HMAC decryption after tag verification passes (812e03f), fixes CVE-2021-29443
- Security
- New
Improve base64url encoding when available in Node.js
- New
- Fixed
Allow stubbing of the JWT.decode function
- Fixed
- Fixed
esm: include esm files in the published package
- Fixed
- Fixed
Allow plugins such as jose-chacha to work in newer node runtime
- Fixed
- Breaking
The
JWE.decryptoptionalgorithmswas removed and replaced with contentEncryptionAlgorithms (handlesencallowlist) and keyManagementAlgorithms (handlesalgallowlist) - Breaking
The
JWT.verifyprofile option was removed, use e.g.JWT.IdToken.verifyinstead. - Breaking
Removed the
maxAuthAgeJWT.verifyoption, this option is now only present at the specific JWT profile APIs where theauth_timeproperty applies. - Breaking
Removed the
nonceJWT.verifyoption, this option is now only present at the specific JWT profile APIs where thenonceproperty applies.
- Breaking
3 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.