Post-quantum JWT: what changes for signed tokens

A JWT signed with a classical algorithm is the part of a token flow that a post-quantum change affects, and the verifier decides which algorithms it accepts. This page explains what the sources support today and what API and identity teams should do now.

On this page

Is a JWT post-quantum, and what changes for signed tokens?

For an API or identity team, the first question is whether the JSON Web Tokens they issue are protected against a future quantum attacker. The honest answer is that a JWT is not post-quantum by default. A post-quantum change affects the signature on a signed JWT, and the verifier decides which algorithms it accepts. RFC 7519 section 7.2 says that unless the algorithms used in a JWT are acceptable to the application, the verifier SHOULD reject it, so the choice of signing algorithm is an application policy, not something the token format fixes. Teams that issue signed tokens are affected in several places at once: token issuers that choose the signing algorithm, the JWK Sets that publish verification keys, verifiers that accept or reject algorithms, and clients that pin particular algorithms.

Each of these parts has its own work. Issuers need to know which algorithm identifiers they emit in the alg header and which key types sign them. JWK Sets, defined in RFC 7517, hold a keys array, and the kid parameter is how verifiers pick among keys during rollover, so a new key type has to be published and rotated without breaking older verifiers. Verifiers should follow RFC 8725 section 3.1, which says libraries MUST let the caller specify the supported set of algorithms and MUST NOT use any others, so an allowlist is the control that decides whether a new post-quantum algorithm is accepted at all. Clients that pin algorithms or hard-code a key type will need the same change. Confirm the current status of each identifier in the library and standard you depend on before planning the rollout.

Encrypted tokens, JWE, follow a separate set of algorithms. RFC 7518 section 4.1 lists key management algorithms such as RSA-OAEP, ECDH-ES and AES key wrap, which are not the same as the signature algorithms used for signed JWTs, so a signing change does not by itself change token confidentiality. Post-quantum JWE work is still in draft at the time of writing: the IETF JOSE working group has active drafts for hybrid and post-quantum HPKE-based JWE, and the sources on this page do not say when they will become RFCs. Treat signed-token work and encrypted-token work as two separate tracks, and ask your library maintainers which of them they plan to support and when.

Where JWT uses public-key algorithms today

This table lists the parts of a JWT deployment that rely on public-key cryptography, as defined in the IETF RFCs, and marks which parts post-quantum signature work touches. Read the signature rows as the parts that change when signing algorithms change, and the JWE row separately, because encrypted tokens use their own key management algorithms. The main takeaway is that signed tokens and JWE key management are different surfaces, so an inventory should check each one.

JWT componentAlgorithms the RFCs defineRequirement or recommendationTouched by post-quantum signature work
RS256 signed tokensRSASSA-PKCS1-v1_5 with SHA-256Recommended (RFC 7518 section 3.1)Yes
ES256 signed tokensECDSA with P-256 and SHA-256Recommended+ (RFC 7518 section 3.1)Yes
RSA keys for RS algorithmsRSA keys of 2048 bits or largerRequired size (RFC 7518 section 3.3)Yes
HS256 signed tokensHMAC with SHA-256, a shared secretRequired for all conforming implementations (RFC 7519 section 8)No, symmetric key
RSA-OAEP key management (JWE)RSA-OAEP and RSA-OAEP-256 for content key wrappingListed in RFC 7518 section 4.1No, separate JWE work
ECDH-ES key management (JWE)ECDH-ES, with variants using AES Key WrapListed in RFC 7518 section 4.1No, separate JWE work
Post-quantum JWS signaturesML-DSA-44, ML-DSA-65 and ML-DSA-87 (RFC 9964)Defined as a Proposed Standard in May 2026Yes, this is the new signature surface

What the IETF and NIST have published for ML-DSA in JOSE

The core specification for post-quantum signatures in JOSE is RFC 9964, published in May 2026 as a Proposed Standard. It defines ML-DSA for JSON Object Signing and Encryption (JOSE) and CBOR Object Signing and Encryption (COSE), and it registers the JOSE alg values ML-DSA-44, ML-DSA-65 and ML-DSA-87, along with the JOSE key type AKP. It registers no crv values. The algorithms it names correspond to the three parameter sets of NIST FIPS 204, which NIST published as a final standard on 13 August 2024. FIPS 204 defines ML-DSA itself, and RFC 9964 defines how its keys and signatures are serialized in JWS. Its Appendix A gives JWS examples for all three parameter sets, and the priv parameter of an ML-DSA key is always a 32-byte seed. Confirm the exact field layout against the RFC before writing a verifier, since a verifier must match these identifiers exactly.

Signature sizes change the sizing work for token issuers. RFC 9964 Table 1 gives the public key and signature sizes in bytes: ML-DSA-44 has a 1312-byte public key and a 2420-byte signature, ML-DSA-65 has a 1952-byte public key and a 3309-byte signature, and ML-DSA-87 has a 2592-byte public key and a 4627-byte signature. In JWS the signature bytes are then base64url encoded, so the encoded signature is larger again. Teams that put tokens in headers, cookies or URLs should test size limits in gateways, proxies and browsers before choosing a parameter set. For background on the algorithm family, RFC 9964 is the primary reference, and the sizes should be checked against the table in that document rather than against secondary summaries.

Two related documents are relevant but not settled. RFC 9864, published in October 2025 as a Proposed Standard, adds the fully specified JOSE identifiers Ed25519 and Ed448 and deprecates the polymorphic EdDSA registration, so issuers that still write EdDSA should plan to move to the fully specified names. Composite signatures that pair ML-DSA with ECDSA or EdDSA are in draft-ietf-jose-pq-composite-sigs-07, dated 23 November 2026, and post-quantum or hybrid key encapsulation for JWE built on HPKE is in draft-ietf-jose-hpke-pq-pqt-02, dated 25 October 2026. Both are active working group Internet-Drafts with no RFC number as of 4 December 2026, so their identifiers may still change. Confirm their status on the IETF Datatracker before relying on them.

Which libraries have shipped ML-DSA support for JWT

The jose library by panva is the JavaScript library the sources on this page name for ML-DSA identifiers in JWT. Its changelog records that version 6.1.0, released on 27 August 2025, added support for the ML-DSA algorithm identifiers. The changelog entry is the source for that date and version, so check the release notes of your own version before assuming the same support.

  • Version and date: jose 6.1.0, 27 August 2025, added ML-DSA algorithm identifiers.
  • Scope of the entry: the changelog records identifiers, so confirm whether your code path can sign and verify with them, not only parse them.
  • Other JavaScript libraries: the sources on this page do not cover other JavaScript JWT libraries.
  • Version pinning: an application on an older jose release will not have this change.
  • Specification status: the RFC that defines the JOSE serialization of ML-DSA is RFC 9964, published in May 2026 as a Proposed Standard.

Check the jose changelog and the documentation of any other JavaScript JWT library you depend on, and confirm the algorithm names and key formats they accept for ML-DSA.

How signature size and compatibility change for verifiers

A post-quantum ML-DSA signature is much larger than the ES256 or RS256 signatures most verifiers handle today, and it is base64url encoded in the token. The rules that decide which algorithms a verifier accepts and which key a token is checked against also determine how safely a change can roll out.

ML-DSA-44 signature and key sizes

RFC 9964 Table 1 gives an ML-DSA-44 signature of 2420 bytes and a public key of 1312 bytes. A JWS signature of this size is then base64url encoded, so the signature segment of the token grows by a large amount before any claims are added. Check that header size limits in proxies, load balancers and cookie storage can hold tokens this large. The sizes come from the RFC, so confirm them against the parameter set you deploy.

RFC 9964 text

ML-DSA-65 signature and key sizes

RFC 9964 Table 1 gives an ML-DSA-65 signature of 3309 bytes and a public key of 1952 bytes. This is the middle parameter set, and its larger signature raises the same header and storage questions as ML-DSA-44 at a bigger scale. Verifiers that cache public keys need room for the 1952-byte key in each entry of their JWK Set. Confirm the parameter set your issuer uses before sizing any limit.

RFC 9964 text

ML-DSA-87 signature and key sizes

RFC 9964 Table 1 gives an ML-DSA-87 signature of 4627 bytes and a public key of 2592 bytes. This is the largest of the three parameter sets, so it adds the most weight to each token and each cached key. Test your maximum token size with this set before you choose it for any token that travels in a header. Measure real tokens in your own stack, because the RFC sets only the raw byte counts.

RFC 9964 text

Base64url encoding of signature bytes

In JWS, the signature bytes are base64url encoded after RFC 9964 defines their length, so the encoded signature is longer than the raw bytes. Any code that assumes a fixed signature length for ES256 or RS256 will fail on these tokens. Review parsers, log pipelines and token viewers that cut or validate the signature segment by length. Test the encoding path end to end before you accept post-quantum tokens.

RFC 9964 text

Key rollover through kid

RFC 7517 section 4.5 uses the kid parameter to choose among keys in a JWK Set during key rollover. A post-quantum key added beside a classical key relies on kid to tell verifiers which key signed a given token. Verifiers that ignore kid or that fetch a single key will reject tokens during the overlap period. Confirm that every verifier selects keys by kid and that the JWK Set publishes old and new keys together.

RFC 7517 text

Algorithm pinning by verifiers

RFC 8725 section 3.1 requires libraries to let the caller specify the supported algorithms and to refuse any other. A verifier pinned to RS256 or ES256 will reject an ML-DSA token outright, which is the intended behavior. Adding a post-quantum algorithm therefore means changing the allowed list in each verifier on purpose, and RFC 8725 also requires each key to be used with exactly one algorithm. Review every verifier's allowed list before the issuer starts signing with a new algorithm.

RFC 8725 text

Where the signature sits in a JWT request flow

The flow starts when the issuer signs the header and claims with a chosen algorithm and publishes the public key in a JWK Set. The client then presents the token to the verifier, which uses the kid to pick the right key and checks the alg against its own allowlist before it validates exp, nbf and iat. The signature step is the post-quantum change point: swapping the algorithm there affects the issuer, the published key set and the verifier's allowlist, while the claims checks stay the same.

The signature step is where the post-quantum algorithm change takes effect in a JWT flow.

What API teams should do now, in order

This sequence gives API teams a verified inventory of their signing keys, tested verifiers and vendor commitments before any key changes. It produces a dated record of what is ready and what still needs a rollover plan.

  1. Inventory every issuer, JWK Set and verifier

    Platform and identity teams list each service that issues signed JWTs, each JWK Set endpoint those services publish, and each API or gateway that verifies tokens. Include tokens minted by third-party identity providers that your verifiers trust. The output is a single register with an owner for each entry. Treat the list as complete only when every verifier that accepts a token has an entry, because a verifier you missed will fail or accept tokens outside the plan.

  2. Record the algorithms in use

    For each issuer and verifier, record the value of the "alg" header and the key type your system accepts, such as RS256, ES256 or an HMAC algorithm. RFC 7519 section 7.2 leaves the verifier in charge of which algorithms it accepts, so the register should show the allowlist each verifier actually enforces. The check is done when every row names the algorithms in configuration, not from memory.

  3. Test verifiers against ML-DSA-65 tokens

    Using the JOSE library each verifier runs, generate a test token signed with ML-DSA-65 and present it to a non-production verifier. RFC 9964 defines the "ML-DSA-65" alg value and the "AKP" key type, so a library that lacks them should reject the token. Record the library name, its version and the exact result for each verifier. Do not take a passing result from one library as evidence for another, since support differs by library and version.

  4. Ask vendors for their RFC 9964 status

    Send each library maintainer and platform vendor on your register a written question: do you implement the ML-DSA identifiers defined in RFC 9964, in which version, and with which key formats. Ask for the date of any release that adds them. Some projects publish roadmaps without dates, so a vendor that gives no date should be recorded as having no committed date. Confirm each answer against the vendor's own documentation and release notes before you rely on it.

  5. Plan a hybrid or dual-key rollover using kid

    Using the "kid" parameter described in RFC 7517 section 4.5, plan a rollover in which the JWK Set publishes the current key and the new key side by side, and issuers switch tokens only after every verifier on the register accepts the new identifier. Verifiers select keys by "kid", so each new key needs a unique identifier. The plan is complete when it names the rollback step for each issuer and verifier pair.

  6. Record the change and confirm with documentation

    Write a dated change record for each issuer and verifier that states its algorithms before and after, its library version, its test result and any vendor answer. Note where a standard is still a draft, such as the composite signature and HPKE drafts that had no RFC number at the time of the facts, and do not record those as settled. Keep the record with the change tickets, and re-check it when a library releases a new version.

Risks the sources name for JWT signature changes

The sources name a small set of risks that appear when JWT signing moves to post-quantum algorithms. Most come from verifiers trusting the token's own header, from keys reused across algorithms, and from larger tokens and key sets that existing systems were not sized for.

Verifiers accepting the token's algorithm

RFC 8725 says libraries MUST let the caller specify the supported set of algorithms and MUST NOT use any others. A verifier that reads the alg value from the token header and uses it without checking an allowlist can be pushed onto a weaker or unintended algorithm. Adding ML-DSA values to a verifier makes this check more important, not less. To notice it, search your verifier configuration for how the accepted algorithms are set and confirm the list is fixed by your code, not by the incoming token.

RFC 8725 text

One key used across algorithms

RFC 8725 says each key must be used with exactly one algorithm. A signing key that is reused for an RSA or ECDSA algorithm and then for an ML-DSA algorithm breaks that rule and can let one algorithm's signatures be accepted in place of another's. Post-quantum migration is a common point where teams reuse existing key material. To notice it, list every signing key in your key set and record the single algorithm each one is declared for.

RFC 8725 text

Larger tokens and key sets

RFC 9964 gives ML-DSA sizes that are much larger than common JWT keys. Public keys range from 1312 to 2592 bytes, and signatures from 2420 to 4627 bytes before base64url encoding. A token signed with ML-DSA and a JWK Set holding several such keys can exceed header size limits in proxies, load balancers and cookies. To notice it, measure a sample signed token and a fetched JWK Set, and test them through every hop between issuer and verifier.

RFC 9964 text

Library without post-quantum support

A JWT library that does not implement the ML-DSA identifiers cannot sign or verify those tokens, and an application built on it has no safe path to migrate until the library is updated or replaced. The sources record support landing in specific releases, such as the jose library adding ML-DSA identifiers in version 6.1.0, so the version you run decides the answer. To notice it, check your library's release notes and test whether it accepts an ML-DSA alg value before planning the change.

jose changelog

What the JOSE working group has not settled yet

The JOSE working group has finished the core serialization for post-quantum signatures but has not finished the two drafts that matter most for hybrid and composite deployments. The first is draft-ietf-jose-pq-composite-sigs, which specifies composite signatures that pair ML-DSA with ECDSA or EdDSA. Version 07 is dated 23 November 2026, and on 4 December 2026 it still had no RFC number, so it is an active Internet-Draft that may change. The second is draft-ietf-jose-hpke-pq-pqt, dated 25 October 2026, which registers post-quantum and post-quantum/traditional hybrid algorithm identifiers for JWE built on HPKE. Version 02 is also an unpublished draft. Neither draft should be treated as a stable identifier set for production issuers or verifiers.

For a token team, the practical consequence is that a hybrid token scheme has no settled wire format yet. The identifiers, the key type registrations and the way a composite key is serialized in a JWK Set may still move between drafts. Before you commit issuers to a composite signature, check the current draft status on the IETF Datatracker, read the change history between the versions you plan to use, and confirm with your library vendor which draft version its code implements. The sources listed on this page do not say when either draft will be published as an RFC, so do not plan a fixed migration date around them.

Nimbus, the JOSE library maintained by Connect2id, says in its 17 December 2025 roadmap that it will track IETF work on ML-DSA and SLH-DSA for JWS and on ML-KEM and HPKE for JWE. It also expects a "long transition period" in which classical, hybrid and post-quantum primitives coexist, and it gives no dates. That is a useful signal about planning: a verifier that must accept both classical and post-quantum tokens for years is the normal case, not an edge case. The roadmap does not say when Nimbus will ship composite signature support, so treat its statement as a direction rather than a delivery schedule. The sources do not give a timeline for the transition as a whole.

The reader must confirm compatibility between versions. An ML-DSA token from one library may not verify in another if they implement different draft versions or different key serializations, and the sources do not claim that any two implementations are interoperable. Test every issuer and verifier pair you run against the exact library versions in production, record which draft each one follows, and keep the classical algorithm in your allowed set until those tests pass. RFC 8725 section 3.1 requires that verifiers use only the algorithms the application has chosen, so a hybrid rollout should list each accepted algorithm explicitly rather than rely on a library default.

Common questions about post-quantum JWT

What is a post-quantum JWT?

A post-quantum JWT is a JSON Web Token whose signature uses a post-quantum algorithm instead of an classical one such as RS256 or ES256. The main candidate in the sources is ML-DSA, standardized by NIST in FIPS 204 on 13 August 2024. RFC 9964, published in May 2026 as a Proposed Standard, defines how ML-DSA is serialized in JOSE, registering the "alg" values "ML-DSA-44", "ML-DSA-65" and "ML-DSA-87". The token format itself does not change: it is still header, payload and signature, but the signature is larger. For ML-DSA-65, RFC 9964 gives a 3309-byte signature before base64url encoding, which affects header size and bandwidth. Check the exact sizes against the RFC before sizing your systems.

Do existing JWTs need to change now?

Existing signed JWTs do not have to change today, and the sources do not set a deadline for doing so. Current tokens continue to verify under their current algorithms. The practical work now is inventory: find every issuer, verifier and JWK Set, and note which algorithms each one accepts. RFC 8725 says a library must let the caller specify the algorithms it supports and must not use others, so a verifier can be pinned to its current algorithms. Plan for coexistence rather than a switch, because the Nimbus roadmap of 17 December 2025 expects a "long transition period" in which classical, hybrid and post-quantum primitives coexist and gives no dates. Ask your vendors and project maintainers for their own dated plan.

Does post-quantum change encrypted JWE tokens?

Yes, but encrypted tokens follow a separate track from signed ones. RFC 7518 section 4.1 lists the JWE key management algorithms in use today, including RSA-OAEP, ECDH-ES with AES Key Wrap, AES key wrap, "dir" and PBES2. These are classical and are not the ML-DSA identifiers. The sources show two work items still in progress: draft-ietf-jose-hpke-pq-pqt-02, dated 25 October 2026, which registers post-quantum and hybrid algorithm identifiers for JWE built on HPKE, and the Nimbus roadmap, which says it will track ML-KEM and HPKE for JWE without dates. Because these drafts are not RFCs, confirm the status of any JWE identifier with your library before relying on it.

Which JWT library can sign with ML-DSA today?

Check the library you depend on rather than assuming support. The sources show one example: the jose JavaScript library by panva added the ML-DSA algorithm identifiers in version 6.1.0 on 27 August 2025. Node.js documents the key types 'ml-dsa-44', 'ml-dsa-65' and 'ml-dsa-87' in its crypto module, with 'jwk' among the supported key formats. Ask your vendor or maintainer four things: which version added ML-DSA, whether it signs and verifies or only verifies, whether it supports the RFC 9964 identifiers, and whether it enforces an algorithm allowlist. Get the answers in writing and test them against your own tokens. The sources do not cover every library, so treat this as a list of what to ask, not a finding about any named product.

Are composite signatures part of the standard yet?

Composite signatures are still a draft. draft-ietf-jose-pq-composite-sigs-07, dated 23 November 2026, is an active JOSE working group Internet-Draft that pairs ML-DSA with ECDSA or EdDSA. As of 4 December 2026 it had no RFC number. A composite design keeps a classical signature alongside the post-quantum one, which some teams prefer during the transition. Until the draft becomes an RFC, do not treat its identifiers as settled. Confirm the status on the IETF datatracker before you build against it.

Should we migrate our JWT signing in-house or hire help?

Whether to do this in-house depends on how much of the token path you own and how many verifiers depend on it. The work divides into inventory, library confirmation, key set changes, verifier updates and client coordination. The cost components are staff time for each, library upgrades, testing against every client, and any change to token sizes at the gateway or proxy. Much of this cost is one-time, while monitoring, key rotation and library maintenance recur. DeployOpen plans and implements self-hosted identity platforms inside a client's own infrastructure and can scope a migration in writing. Ask any firm, including DeployOpen, for a written scope that names the systems, deliverables and timeline before work starts. DeployOpen does not publish prices, and a quote follows the agreed scope.

What should we ask a JWT library vendor first?

Start with the algorithms and the verification rules, since those decide whether a token can be accepted at all. Ask which JOSE identifiers the library supports for ML-DSA, and whether it implements the registrations in RFC 9964. Ask whether it lets the application set an allowlist of algorithms, as RFC 8725 requires, and whether it rejects a token whose algorithm falls outside that set. Ask whether one key is restricted to one algorithm, which RFC 8725 also requires. Ask for dates: when support shipped, which version, and whether it covers signing as well as verifying. Also ask how it handles the RFC 7517 "kid" lookup during key rollover. Record the answers and the version you tested.

How much larger are post-quantum signed tokens?

Post-quantum signatures are substantially larger than classical ones, so token and key sizes grow. RFC 9964 Table 1 gives ML-DSA-44 a 2420-byte signature and a 1312-byte public key, ML-DSA-65 a 3309-byte signature and a 1952-byte public key, and ML-DSA-87 a 4627-byte signature and a 2592-byte public key. In a JWS the signature is base64url encoded, which adds further size. Larger tokens can hit header limits in proxies, load balancers and cookies, and a JWK Set holding several large keys grows as well. Test your gateway limits with real tokens before any change. The sizes above are the sources' numbers, so check them against the RFC you deploy.

How DeployOpen helps with JWT and token migration

DeployOpen approaches post-quantum JWT work as a scoped engagement inside your own infrastructure. We start by mapping which issuers, verifiers and key sets sign or encrypt your tokens, then agree in writing what the change covers. The work is delivered and documented so your own engineers can run it afterward.

How we scope

  • Inventory every token issuer, verifier and JWK Set that signs or encrypts your JWTs today.
  • Record which signing algorithms each verifier accepts, since RFC 7519 leaves that choice to the application.
  • Agree the scope in writing as a fixed-scope engagement, with deliverables and timelines defined before work starts.

How we build

  • Check which JOSE libraries in your stack support the ML-DSA identifiers before any code changes begin.
  • Stage new signing keys alongside existing ones using the kid parameter so verifiers can choose during rollover.
  • Test verification paths, including clock skew for exp, nbf and iat, against both old and new tokens.

How we hand over

  • Document each issuer, verifier and key set with its algorithm list, key sizes and rollover procedure.
  • Provide a runbook for the staged move, including how to roll back if a client cannot verify a new token.
  • Walk your engineers through the configuration so they can repeat the rollover without outside help.

How we support

  • Ongoing support and upgrades are available as a retainer once the initial handover is complete.
  • Track library releases and standards changes, such as the open JOSE composite signature and HPKE drafts, and report what they change for your stack.
  • Confirm compatibility for the exact library and version you run, since the sources do not establish interoperability across versions.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.