Which JWT libraries can sign with post-quantum algorithms today?
A team that depends on a JWT library needs to know whether that library can sign with ML-DSA before it plans any change to token issuance. Today a small set of libraries has shipped ML-DSA support with stated versions and conditions. The jose JavaScript library by panva added ML-DSA identifier support and AKP JWK support in version 6.1.0, released 27 August 2025, and the libjwt C library gained experimental ML-DSA signing in a commit dated 15 June 2026. Most other libraries have published nothing on ML-DSA, or support only parts of the algorithms defined in RFC 9964. Check the release notes and the README of your own library rather than relying on a general statement about the ecosystem.
Developers and API owners who issue or verify tokens are the ones affected. Confirm three things for your own stack: the library and its exact version, the runtime or crypto backend it uses, and whether that combination supports the alg values ML-DSA-44, ML-DSA-65 and ML-DSA-87. The libjwt commit says ML-DSA is active only when the backend is OpenSSL 3.5 or later, and that GnuTLS and MbedTLS reject AKP keys at parse time. The jose README warns that some algorithms may not be available depending on the runtime. Test signing and verification in your actual environment before counting a library as capable.
Nothing in the published sources makes any of these libraries ready or compliant. The PostQuantum.Jwt NuGet package signs only with ML-DSA-65, describes its use of the registered algorithm as experimental, and says it is not independently audited and does not guarantee interoperability with generic JWT tooling. The Nimbus JOSE+JWT roadmap names ML-DSA and SLH-DSA as work it will track but does not state a release. The joserfc 1.8.0 package page does not mention ML-DSA. Ask each library maintainer or vendor for its supported algorithms, its test results against RFC 9964 and its release plan, and record the answers in your inventory.
Where JWT signing uses public-key algorithms today
The table lists the JWT signing algorithms defined in RFC 7518 that rely on public-key signatures, with the RFC section for each, and shows where the post-quantum ML-DSA identifiers from RFC 9964 add to them. HS256 is included to show that it uses a shared secret and is not a public-key signature. Read the rows to see which algorithms your library or issuer needs to support, and confirm each one against the version you run.
| Algorithm | Type and standard | Post-quantum relationship | RFC section |
|---|---|---|---|
| RS256 | RSASSA-PKCS1-v1_5 with SHA-256, public-key, Recommended | Classical algorithm, not replaced by a post-quantum identifier in the sources listed here | RFC 7518 section 3.1 |
| ES256 | ECDSA with P-256 and SHA-256, public-key, Recommended+ | Classical algorithm, not replaced by a post-quantum identifier in the sources listed here | RFC 7518 section 3.1 |
| HS256 | HMAC with SHA-256, shared secret, not a public-key signature | Not a public-key signature, so it is outside the post-quantum signature change | RFC 7518 section 3.2 |
| ML-DSA-44 | Post-quantum JOSE algorithm identifier, public-key | Added by RFC 9964 for ML-DSA signatures, with AKP key type | RFC 9964 (Proposed Standard, May 2026) |
| ML-DSA-65 | Post-quantum JOSE algorithm identifier, public-key | Added by RFC 9964 for ML-DSA signatures, with AKP key type | RFC 9964 (Proposed Standard, May 2026) |
| ML-DSA-87 | Post-quantum JOSE algorithm identifier, public-key | Added by RFC 9964 for ML-DSA signatures, with AKP key type | RFC 9964 (Proposed Standard, May 2026) |
| Conforming JWT implementations | RFC 7519 requires HS256 and none, and recommends RS256 and ES256 | RFC 7519 does not list ML-DSA identifiers, so support depends on library and profile | RFC 7519 section 8 |
What RFC 9964 and NIST have published for ML-DSA in JOSE
RFC 9964 is the document a JWT library needs to implement ML-DSA signatures in JOSE. NIST published FIPS 204, which defines ML-DSA as a set of algorithms for creating and verifying digital signatures, as a final standard on 13 August 2024. FIPS 204 does not say how the algorithm is written into a JSON Web Signature, so that job falls to RFC 9964, ML-DSA for JSON Object Signing and Encryption (JOSE) and CBOR Object Signing and Encryption (COSE), which was published in May 2026 as a Proposed Standard by M. Prorock and O. Steele. The RFC is the reference for what a compliant library must produce and accept, so it is the first document to check against when you assess a library.
RFC 9964 registers three JOSE alg values, ML-DSA-44, ML-DSA-65 and ML-DSA-87, which correspond to COSE values -48, -49 and -50. It registers the JOSE key type AKP, and it registers no crv values. A library that expects a crv parameter for these keys is following an older or different pattern, so confirm that key objects carry kty set to AKP and an alg that names the variant. RFC 9964 also gives the public key and signature sizes for each variant in Table 1, and the signature is base64url encoded inside the JWS, so token size grows noticeably. Size these in your own environment rather than assuming they match the RFC's table for your transport. Section 7.3 requires implementations to validate every algorithm-related parameter of an ML-DSA key, including the 32-byte priv seed length, so ask each library whether it performs those checks.
Which libraries have shipped ML-DSA support, and which have not
The jose library by panva is the clearest example in the sources. Version 6.1.0, released 27 August 2025, added ML-DSA algorithm identifier support and AKP JWK support in the JWK thumbprint functions. Version 6.2.18, released 18 November 2026, changed the jwk module so that direct AKP key inputs must include an "alg" value.
- Version 6.1.0: adds ML-DSA algorithm identifiers and AKP JWK thumbprint support, released 27 August 2025.
- Version 6.2.18: requires an "alg" on direct AKP key inputs in the jwk module, released 18 November 2026.
- Specification listing: the README lists "ML-DSA for JOSE - RFC9964" among its specifications.
- Runtime caveat: the README warns that certain algorithms may not be available depending on the runtime, so test the runtime you deploy on.
- Node.js: the Node.js crypto documentation lists ml-dsa-44, ml-dsa-65 and ml-dsa-87 key types and marks them with a footnote that appears to refer to OpenSSL 3.5.
Confirm that your runtime exposes the ML-DSA algorithms before you sign or verify in production, and pin the jose version you have tested.
The libjwt C library has experimental ML-DSA signing in a commit dated 15 June 2026. The feature covers ML-DSA-44, ML-DSA-65 and ML-DSA-87, and it is off by default. The commit says the feature is active only when the TLS backend implements ML-DSA, which it gives as OpenSSL 3.5 or later.
- Build flag: ML-DSA support is off by default and is enabled with -DWITH_ML_DSA=ON.
- Backend requirement: the commit gives OpenSSL 3.5 or later as the backend that implements ML-DSA.
- Detection: the public header defines LIBJWT_HAVE_ML_DSA so downstream code can detect the feature.
- GnuTLS and MbedTLS: the commit says these backends reject AKP keys at parse time. A GnuTLS implementation is tracked in issue #301.
- Variant pinning: each ML-DSA key is pinned to its variant, so a 44 key cannot be used to sign or verify an 87 token.
The sources do not state a stable release that includes this support, so check the released version against the commit before depending on it.
For Java, the sources name the Nimbus JOSE+JWT roadmap rather than a shipped ML-DSA release. The roadmap post of 17 December 2025 names version 10.5 as current and lists ML-DSA and SLH-DSA for JWS, and ML-KEM and HPKE for JWE, as work it will track. Its immediate task is updating to the RFC 9864 identifiers.
- Nimbus status: the roadmap of 17 December 2025 lists ML-DSA and SLH-DSA for JWS as work to track, with version 10.5 named as current.
- Nimbus next step: the stated immediate task is updating to the RFC 9864 identifiers.
- PostQuantum.Jwt: a NuGet package, version 1.0.1 last updated 20 August 2026, owned by systemslibrarian, signs only with ML-DSA-65.
- Experimental label: the package page calls its use of the registered RFC 9964 algorithm experimental and says it is not independently audited.
- Interoperability: the package page says it does not guarantee interoperability with generic JWT tooling and does not make signatures hybrid.
For .NET, the only source here is that third-party package. Treat it as experimental, and ask your vendor or library maintainers for a version with an audit before using it in production.
The joserfc package for Python is listed on PyPI at version 1.8.0, released 3 November 2026. Its page lists RFC9864 support but does not mention ML-DSA, AKP or RFC 9964. The sources show no published ML-DSA support for this library.
- Version and date: joserfc 1.8.0, released 3 November 2026.
- Listed standard: the PyPI page lists RFC9864.
- Not listed: the page does not mention ML-DSA, AKP or RFC 9964.
- Implication: the sources show nothing published on ML-DSA support in this library at this version.
- Check directly: review the changelog and the source for ML-DSA algorithm names before planning a move.
If you use joserfc, confirm the algorithm list in the version you run, and do not assume support from the RFC 9864 listing alone.
What changes in key and token size when you move to ML-DSA
Moving JWT signing to ML-DSA changes the size of every key and token your system handles, not only the algorithm name. The cards below cover the byte sizes RFC 9964 defines, how base64url encoding grows a JWS, how libraries keep a key tied to one variant, and the seed length implementations must check.
Public key and signature sizes by variant
RFC 9964 Table 1 gives the public key and signature sizes for each variant. ML-DSA-44 uses a 1312-byte public key and a 2420-byte signature. ML-DSA-65 uses a 1952-byte public key and a 3309-byte signature. ML-DSA-87 uses a 2592-byte public key and a 4627-byte signature. Compare these with the keys and signatures your issuers and verifiers use today before you size key storage, JWKS responses and token headers. Confirm the figures against the RFC itself for the variant you choose.
- ML-DSA-44 signature
- 2420 bytes
Base64url growth in JWS tokens
In a JWS, the signature bytes are base64url encoded, so the signature segment of the token is longer than the raw signature. Base64url adds roughly a third to the byte count, so a 3309-byte ML-DSA-65 signature becomes a much longer string in the Authorization header or a cookie. Check the header size limits of your proxies, load balancers and browsers, and test with a real token before you change the signing algorithm in production.
RFC 9964 textVariant pinning in libjwt
The libjwt commit pins each ML-DSA key to its variant, so a key parsed as ML-DSA-44 cannot be used to verify or sign a token labeled for ML-DSA-87. This stops a mismatch between key size and algorithm from passing silently. When you review a library, confirm it enforces this pinning and does not accept any key that parses. Treat a failure to match as a rejected token, not a fallback.
libjwt ML-DSA commitSeed length validation under RFC 9964
RFC 9964 section 7.3 requires implementations to validate all algorithm-related parameters of an ML-DSA key, including the 32-byte "priv" seed length. A private key that arrives with a seed of another length must be rejected, not truncated or padded. Ask each library how it checks the seed on import, and test with a malformed JWK to see whether it fails closed. Include this check in your key-import review.
RFC 9964 section 7.3How to check your JWT library before you plan an ML-DSA change
This sequence shows whether the JWT libraries in each service can handle ML-DSA keys and tokens in your own environment before you plan a signing change. It produces a dated record of library versions, runtime support, test results and interoperability, which you can use to decide what to change next.
List every JWT library and version
Each team that issues or verifies tokens should list every JWT or JOSE library in each service, including the exact version and the language runtime it runs on. Include transitive dependencies and any custom token code, since these are often missed. Check the lockfile or build manifest rather than the top-level declaration. The step is done when the inventory names one library, one version and one runtime for every token issuer and verifier, and an owner for each service.
Confirm the runtime supports ML-DSA
For each library, confirm that the underlying cryptographic backend supports ML-DSA. The libjwt C library, for example, activates its ML-DSA feature only when a backend such as OpenSSL 3.5 or later is present, and it defines LIBJWT_HAVE_ML_DSA in its public header so code can detect this. The Node.js crypto documentation marks its ml-dsa key types with a footnote that appears to refer to OpenSSL 3.5. Check the backend version your build actually links against, not the one installed on a build machine. The step is done when each runtime has a recorded backend version and a yes or no answer on ML-DSA support.
Test ML-DSA sign and verify in a non-production environment
In a non-production environment, generate an ML-DSA key in the variant you plan to use, and sign and verify a test token with it. Use one of the variants registered for JOSE in RFC 9964 (ML-DSA-44, ML-DSA-65 or ML-DSA-87). Test a valid token, a token with a changed payload and a token signed by a different key, and confirm that the first passes and the other two fail. Some libraries are experimental or off by default, so confirm the build flag or option that enables the feature. The step is done when the test results are saved with the library version and backend version used.
Check that the library enforces an allowed algorithm list
RFC 8725 section 3.1 says a library must let the caller specify the set of supported algorithms and must not use any others, and that each key should be used with exactly one algorithm. Test this directly: configure the verifier to accept only ML-DSA-65, then present a token signed with a different algorithm, including a token that names an algorithm the verifier does not allow, and confirm it is rejected. Also confirm that a key cannot be used for a different variant than the one it was created for. The step is done when the verifier rejects each out-of-policy case and the result is recorded. Passing this check does not make a token secure on its own. It only shows the library behaves as RFC 8725 describes.
Confirm interoperability with the other side of each token flow
A token passes through more than one component, so test each pair that issues and verifies it. A token signed by one library should be verified correctly by every verifier that receives it, and the reverse must hold too. The sources warn that some libraries do not guarantee interoperability with generic JWT tooling, so do not assume a library that signs successfully will verify tokens from other stacks. Test each issuer and verifier pair, including any gateways, proxies and third-party clients. Use the exact versions from the inventory. The step is done when every pair has a passing result or a documented gap that someone owns.
Record the results and decide next steps
Write down the results from each earlier step in one place: the library and version, the runtime and backend version, the test outcomes, the algorithm enforcement results and the interoperability results for each pair. Mark each library as ready, not ready, or needs investigation, and name the owner who will act on it. Note the date of the check, since library versions and standards change. The step is done when the record exists, every service has a status, and the owners agree on what happens next, such as a library upgrade, a backend change or a different signing approach.
Risks from relying on an experimental or partial library
A library that signs with a post-quantum algorithm may still be experimental, partial or dependent on its runtime. The cards below cover the risks the current sources support, so you can check each one against the library and version you plan to run before you rely on it for issuing or verifying tokens.
Experimental features and no independent audit
Some libraries ship post-quantum signing as an opt-in or experimental feature. The libjwt C library added experimental ML-DSA signing for ML-DSA-44, ML-DSA-65 and ML-DSA-87 in a commit dated 15 June 2026, and it is off by default, enabled with -DWITH_ML_DSA=ON. The PostQuantum.Jwt NuGet package calls its use of the registered RFC 9964 algorithm experimental and says it is not independently audited. Confirm whether the feature is enabled in your build and whether an independent review exists before you put it in front of production tokens.
Interoperability with generic JWT tooling
A library may produce tokens that other JWT tools cannot read. The PostQuantum.Jwt package says it does not guarantee interoperability with generic JWT tooling, and it uses an X-Wing (X25519 and ML-KEM-768) key-management profile that is not a standardized JWE profile. If your tokens are verified by gateways, identity providers or client SDKs you do not control, test each of those verifiers with real tokens before any issuance change.
PostQuantum.Jwt packageAlgorithm availability depends on runtime
Support for an algorithm can depend on the runtime underneath the library. The jose README warns that certain algorithms may not be available depending on the runtime used. The libjwt commit says ML-DSA is active only when a backend implements it, given as OpenSSL 3.5 or later, and that the GnuTLS and MbedTLS backends reject AKP keys at parse time. Check the algorithm list on the exact runtime and backend in your production image, not only the library's documentation.
jose READMEBreaking changes between versions
A library can change how it accepts keys between releases, which can break verification in a running system. The jose 6.2.18 release, dated 18 November 2026, changed its jwk module to require the "alg" parameter on direct AKP key inputs. An upgrade that passed tests in one version may fail in another. Pin the library version, read the changelog for each upgrade, and run verification tests against tokens issued before and after the change.
jose changelogAlgorithm confusion when the library does not restrict algorithms
A verifier that accepts whatever algorithm a token names can be tricked into using the wrong one. RFC 8725 section 3.1 says libraries MUST let the caller specify the supported set of algorithms and MUST NOT use any others, and that each key must be used with exactly one algorithm. When you add post-quantum keys next to classical ones, confirm the verifier takes its allowed algorithms from your configuration and refuses any key used with an algorithm it was not issued for.
RFC 8725 textWhat the JOSE standards and libraries have not settled yet
Support for post-quantum JOSE is uneven, and the sources on this page leave several points open. Before you commit to a library, confirm which of these gaps affect your token flow. The first is whether the same libraries cover post-quantum JWE. The sources document ML-DSA signing in JOSE through RFC 9964, but they do not show that SLH-DSA or ML-KEM with HPKE for JWE is supported by the same libraries. Nimbus JOSE+JWT says in its December 17, 2025 roadmap that it will track ML-DSA and SLH-DSA for JWS and ML-KEM and HPKE for JWE, and names moving to the RFC 9864 identifiers as its immediate task. That is a stated intent, not a shipped feature. Check the release notes of the exact Nimbus version you run before assuming any of this is available.
The second gap is in the non-standard encryption profile used by PostQuantum.Jwt. Its NuGet page says it uses an X-Wing key-management profile built from X25519 and ML-KEM-768. That profile is not a standardized JWE profile, and the package says it does not guarantee interoperability with generic JWT tooling. Any token encrypted under it can only be read by a verifier that implements the same profile. The same page calls its use of the registered RFC 9964 algorithm experimental, says the package is not independently audited, and states that it signs only with ML-DSA-65. Treat it as a proof of concept unless you have reviewed the code and confirmed that every party in your flow uses it.
The third gap concerns hybrid signatures. The sources on this page include no published guidance on hybrid JWS, meaning a token that carries both a classical and a post-quantum signature. The PostQuantum.Jwt page states that it does not make signatures hybrid, and the other sources here do not address the topic. Until a standard or a vendor document says how hybrid tokens should be built, parsed and validated, you cannot rely on a library to produce them correctly. Ask your library maintainers and your standards contacts directly for their hybrid plans, and record their answers in writing before you design around them.
Questions teams ask about post-quantum JWT libraries
Can a JWT library sign with ML-DSA today?
Some can, but support varies by library, version and runtime, so check the one you depend on. The jose JavaScript library added ML-DSA algorithm identifier and AKP JWK support in version 6.1.0, released 27 August 2025. The libjwt C library gained experimental ML-DSA signing for ML-DSA-44, ML-DSA-65 and ML-DSA-87 in a commit dated 15 June 2026, and it is off by default. Confirm with the library's release notes, and test signing and verification with the exact version and backend you run. The jose README also warns that some algorithms may not be available depending on the runtime.
Is ML-DSA a published standard for JWT signatures?
ML-DSA itself is a final standard, and the JOSE serialization is a Proposed Standard. NIST published FIPS 204, which defines ML-DSA for digital signatures, as a final standard on 13 August 2024. RFC 9964, published in May 2026 as a Proposed Standard, defines how ML-DSA is used in JOSE and COSE. It registers the JOSE alg values ML-DSA-44, ML-DSA-65 and ML-DSA-87, and the AKP key type. Libraries that implement the RFC identifiers are the ones to test against, so check which identifiers a library actually emits.
Is PostQuantum.Jwt ready for production use?
No. The PostQuantum.Jwt NuGet package, version 1.0.1 last updated 20 August 2026, describes its use of the registered RFC 9964 algorithm as experimental and says it is not independently audited. It signs only with ML-DSA-65. The package page also says it does not guarantee interoperability with generic JWT tooling and uses an X-Wing key-management profile that is not a standardized JWE profile. Treat it as a test or evaluation tool, not as a production signing component, unless your own review and testing say otherwise.
Is upgrading the JWT library enough to add post-quantum signing?
Usually not on its own. A library upgrade can add the algorithm identifiers, but your issuers, key sets and verifiers also have to agree on which algorithm and key they use. RFC 8725 says libraries must let the caller specify the supported set of algorithms and must not accept others, and that each key is used with exactly one algorithm. Verifiers need an explicit allow list that includes the new algorithms, and key sets need the AKP keys published in the right format. ML-DSA keys and signatures are also much larger than ES256 values, so check header and token size limits in gateways and clients. Test the full token flow, not just the library call.
What should I ask a JWT library vendor about post-quantum support?
Ask which RFC 9964 identifiers the library supports for signing and verification, and which version first added them. Ask whether verification enforces an algorithm allow list and rejects algorithm confusion, and whether AKP keys are validated for their variant, so a key for one ML-DSA variant cannot verify tokens for another. Ask which runtimes or crypto backends are required, and what happens on backends that lack ML-DSA. Ask whether the library is audited, what its test coverage is for these algorithms, and how it handles key parameter validation, including the 32-byte seed length RFC 9964 requires. Get the answers in writing and tie them to the version you will deploy.
Can my own team check which JWT libraries we depend on?
Yes, and most teams can start in-house. Build a list of every JWT library in your services, including transitive dependencies, and record its version and runtime or backend. Then check each library's changelog and documentation for the RFC 9964 identifiers and ML-DSA support, and test signing and verification in a staging environment. Pay close attention to backends that reject AKP keys or lack ML-DSA. The work that often takes outside help is running this across many services, or defining the allow list and key rollout for a large token system. DeployOpen can run that check and deliver a written findings report with fixes and a retest, scoped in writing before work starts.
Where the ML-DSA library sits in a token issue and verify flow
The issuer calls a JWT library configured with an ML-DSA alg identifier (ML-DSA-44, ML-DSA-65 or ML-DSA-87) and an AKP key to produce a JWS. The verifier fetches the public AKP key from its key set endpoint and checks the signature with its own library, which must also support the same identifier and key variant. Verifiers that cannot process ML-DSA fall back to a separate RS256 or ES256 signature path. Check that each library in the chain supports the exact identifier and that the verifier rejects any alg value it did not expect, as RFC 8725 requires.
ML-DSA signing and verification path with an RS256 or ES256 fallback for legacy clients.
How DeployOpen helps teams check and configure JWT libraries
DeployOpen starts by listing every JWT and JOSE library your token issuers and verifiers depend on, then checks each one against the algorithms it claims to support in its own documentation and release notes. We then configure and test the libraries that can sign with post-quantum algorithms, and document the ones that cannot so your team can plan around them.
How we scope
- We list every service, language and runtime that issues or verifies JWTs, including transitive dependencies.
- We record each library's version, its stated support for ML-DSA and AKP keys, and whether it is marked experimental.
- The written scope sets which libraries are checked, which environments are tested, and what the final report covers.
How we build
- We confirm each library's ML-DSA support in a test environment, since availability can depend on the runtime and backend used.
- We enforce a fixed algorithm allowlist in each verifier and tie every key to exactly one algorithm, as RFC 8725 requires.
- We check that key parameters, including the 32-byte seed length required by RFC 9964, are validated before any token is accepted.
How we hand over
- You receive a report listing each library, its version, its tested signing and verification behavior, and any gaps found.
- The report records where experimental or unaudited code is in use, so your security team can make an informed decision.
- We document configuration changes and the test results needed to repeat the checks on later library versions.
How we support
- Ongoing support is available as a retainer, covering library upgrades and rechecks when new releases change algorithm support.
- We can retest after each library update, since changes to key handling or algorithm identifiers may affect verification.
- Confirm with us in the written scope whether continuous testing of token issuers and verifiers is included in the retainer.

