unstale

npm / jsonwebtoken

jsonwebtoken

What changed in jsonwebtoken 9, from its official release notes, upgrade guides and advisories. Also covers @types/jsonwebtoken. Sources checked 2026-10-27.

4 breaking2 security

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.8 on npm

jsonwebtoken 96 changes

Breaking changes 4

  • Key types must be valid for the signing or verification algorithm, restricting use of legacy keys.

    9.0.0release notes

  • Support for Node.js 11 and below was removed, so applications must use a newer Node.js version.

    9.0.0release notes

  • RSA keys must be at least 2048 bits to be used.

    9.0.0release notes

  • verify() no longer accepts unsigned tokens by default, preventing insecure default algorithm handling.

    9.0.0release notes

Security 2

  • Fixed an insecure key retrieval implementation that could allow forging public or private tokens by switching from RSA to HMAC.

    9.0.0release notes

  • Fixed an arbitrary file write vulnerability via the verify function.

    9.0.0release notes