Repository navigation
Open
Description
This issue exists to track requirements and initiatives towards ensuring support for Connect with post-quantum cryptography in the ecosystem.
The following potential issues have been brought up so far:
- Many implementations are throwing away the entire JWK set if they see a single JWK with an algorithm/key type they don't understand. The certification team has already brought this up in suggested certification test for post quantum preparation - unparseable keys in server jwks #2147 for the server case. A similar issue has previously been seen for RFC 9864 support where new algorithm identifiers also appeared. This is a general cryptographic agility issue, not anything specific to post-quantum transition.
- It's not clear that RFC 7517 actually requires implementations to ignore "unknown" keys in a JWKS and still keep the rest of the set, so 1 is not necessarily possible to handle completely with conformance testing.
- How can a client indicate that they only want post-quantum cryptography if the server also offers traditional cryptography? This can't be per-request since that would allow downgrade attacks. Potential solutions include DCR, CIMD and out-of-band configuration.
- Connect Core (and potentially other of our specifications) mention RS256 as a default signing algorithm. This might have to be updated to some other algorithm eventually. But what to update to and when is not clear.
- How can a client that was originally (potentially dynamically) registered to use a non-PQ algorithm change its configuration to use PQ algorithms?
The following initiatives have been proposed so far:
- Defining a conformance test suite for the various layers that need to be correctly implemented for PQC transition to function well. This will require tests at several layers, so it might need to be multiple test suites to ensure easy adoption at each layer.
- Writing a blog post/whitepaper containing best practices and informing the general community of the potential issues mentioned above, ideally while also providing an overview of potential solutions.
- Proactively reaching out to major implementers of OpenID Connect and informing them of the potential issues mentioned above (especially if we can externally observe the issue in their implementation).
- Proactively reaching out to implementers of underlying library code (such as a JWT library) and informing them of the potential issues relevant to their layer.
- Reaching out to security analysis providers and asking them to register the potential issues above as security issues (as opposed to just interoperability issues) since they may prevent PQC adoption in a surprising way.
If you have anything to add to this list, please write it as a comment.
Reacted by Orie Steele
Metadata
Metadata
Assignees
Labels
No labels
Activity
[-]Post-quantum transition[/-][+]Potential post-quantum transition issues[/+]RalphBragg commentedon Aug 13, 2026
Raidiam has been disclosing this since late July. We ran a JWKS with one ML-DSA key (
kty: "AKP", RFC 9964) next to normal RSA and EC keys against every library on jwt.io. That is 110 entries in 37 languages. 46 have a real JWK Set parser. 19 of those 46 fail the whole set on the one AKP key, so an RS256 token that verified a second ago stops verifying. Three separate harnesses agree. Every Rust crate fails. Both Ruby set parsers fail, including the official gem. Every Go set parser fails except kataras/jwt. The impact is simple: a bank or provider that starts advertising ML-DSA breaks its relying parties, and none of them can prevent or roll back the change. One more point for the list in this issue: tolerant is not the same as safe. Most tolerant libraries drop the AKP key in silence. That is fine now, but once issuers sign with ML-DSA the same consumers will only say "no matching key".Timeline and engagement path:
authlib.joseand moved the fix to joserfc.Actions in flight:
Tickets raised:
jwk.Configure(jwk.WithStrictKeySetParsing(false))authlib.joseis deprecatedNote the pattern: the fixes go forward, not backward. jwx makes v4 tolerant by default and leaves v3 strict unless you opt in. Keats/jsonwebtoken deferred the fix to v11 because it breaks the API. Authlib will not patch the deprecated module at all.
Raidiam-JWK-kty-advisory-report-rev2.pdf
Harness, the full 110 row matrix and the advisory are being published today at https://github.com/raidiam-oss/PQdos
james-d-elliott commentedon Aug 16, 2026
Also see go-jose/go-jose#282
sakimura commentedon Aug 20, 2026
I wonder if the underlying issue here is broader than PQC support itself.
To me, the more fundamental requirement is cryptographic agility, including both algorithm agility and key agility.
PQC transition is one immediate driver, but we should probably avoid treating it as a one-off migration from “classical” algorithms to a fixed set of “post-quantum” algorithms. The PQC algorithms we deploy today may themselves need to be replaced later, whether because of new cryptanalysis, implementation considerations, hardware constraints, or operational experience.
From that perspective, I think Connect implementations and profiles should be able to support at least the following properties:
algandktyvalues without breaking use of already-supported algorithms;The unknown-
ktybehaviour discussed above is a good example: the problem is not really ML-DSA-specific. It demonstrates that an implementation which appears algorithm-agile at the protocol level may in practice be unable to tolerate introduction of a new key type.I would also distinguish the risk model for short-lived online assertions, such as ID Tokens, from long-lived signatures or confidentiality use cases. For an online assertion, the relevant security parameter is not only the algorithm, but also the public-key exposure period, signing-key cryptoperiod, token lifetime, and the period during which signatures under that key remain acceptable. If a future quantum attack requires non-negligible time per key, sufficiently short key and acceptance windows may materially reduce the practical attack surface, although this obviously does not remove the need for PQC transition.
So I suggest that the work here be framed not only as “how do we add PQC algorithms to OpenID Connect?”, but more broadly as:
What cryptographic-agility requirements must OpenID Connect and its implementations satisfy so that algorithms and keys can be introduced, rotated, deprecated, and replaced safely over time?
That seems likely to remain useful even after the first PQC transition is complete.
PhilSchmieder commentedon Aug 20, 2026
To elaborate on potential issue 3:
Our concern is not with the general feasibility of making OIDC post-quantum secure, but with a smooth transition process. This is primarily driven by the need to support multiple signature schemes at the same time. For a smooth transition to post-quantum security it is sensible to initially support a post-quantum signature scheme like ML-DSA-44 and a classical one like RS256 at the same time. In that scenario, RPs must be able to somehow decide whether they want to receive tokens signed with ML-DSA-44 or RS256. Naturally, ML-DSA-44 is the favorable choice after Q-Day but before that (or maybe even after that) RPs may want to stay with RS256 for compatibility reasons.
As of now, RPs can specify in
id_token_signed_response_algthe "JWS alg algorithm [...] REQUIRED for signing the ID Token issued to this Client". Depending on the nature of the RP and how the tokens are verified being able to specify one algorithm is not sufficient due to the aforementioned conflict of post-quantum security and compatibility. Therefore the possibility of specifying multiple algorithms and to change them without the need to re-register would be required.Similar problems may arise for other metadata values such as:
userinfo_signed_response_alg,request_object_signing_alg,token_endpoint_auth_signing_alg.I agree with @sakimura, that while the post-quantum transition may be the motivating driver behind ideas like this, they should be seen more generally as a crypto agility improvements.
An additional thought: Some time after Q-Day when computation time on cryptographically relevant quantum computers becomes a quasi commodity tokens signed with RSA (assuming usual-ish parameters) are easily forged. From a security perspective they become essentially unsecured. Therefore, while I believe hard coding one signature scheme that every party must support is a good idea, specifying that RS256 is the only scheme that must be supported is dangerous and that choice should be changed to a post-quantum secure scheme.
fkj commentedon Aug 21, 2026
I'm not really sure I understand what the problem is here. Each client gets a list of algorithms to choose from in the Discovery metadata, but then they do actually need to choose one. What would it mean for the RP to specify multiple algorithms here? How would the OP decide which of them to use in a specific request, and if the RP supports both, why not just use the PQ algorithm?
I do of course understand the need to change the configuration, which is a separate topic that I have added as issue 5 in the top comment.
I agree, and I believe this is the general opinion of the working group as well.
I agree and have added this as issue 4 in the top comment.
james-d-elliott commentedon Aug 21, 2026
Really this is a job for DCR and MC OpenID Connect Relying Party Metadata Choices 1.0.
As to the overall issue I think the main problem is JWT libs rejecting unknown entries. I think if you read between the lines of the spec it's clear the client is meant to either pick the one that signed the token, or the one they want to use to encrypt.
I think it would be reasonable to enforce ignoring unknown phony alg/kty for conformance under an errata.
fkj commentedon Aug 21, 2026
Yes for the negotiation parts (plus CIMD). But most clients are statically registered, so there is a separate challenge in communicating best practices for out-of-band configuration.
Right now this is only a SHOULD in RFC 7517, but for conformance we could choose to interpret that in a stricter way.
jogu commentedon Aug 26, 2026
This is basically the position we have taken with the conformance tests - once https://gitlab.com/openid/conformance-suite/-/merge_requests/2119 is merged/deployed people will be required to ignore unknown keys to be able to certify. (It's really difficult to actually write the test in a way that people who reject unknown keys would still be able to complete the test and certify.)
We technically don't yet have approval from the Connect WG on this, just a lack of objections and some support - a decision made at a quorum WG meeting and recorded by one of the chairs onto #2147 would be helpful to close that off please.
fkj commentedon Aug 27, 2026
I will add this to our agenda today.
RalphBragg commentedon Aug 27, 2026
Hi - I can't attend but obviously this gets my / Raidiam's vote if necessary!
james-d-elliott commentedon Aug 28, 2026
Looking broadly at the intent of the spec here it seems very clear that the client should pick the appropriate JWK from the list of JWKs and not consider the others. I hope it's not a burden for me to harp on about this.
RFC7515 states:
RFC7517 Section 5 also states in addition to the
ktySHOULD and separate to members within a JWK:I understand there is wiggle room for interpretation here but I still believe there is an extremely strong argument that this is expected of clients.
There is no spec requirement for example that a client should not reject JWKS if it has a JWK with a key id it does not expect either, but it's not very logical to argue that it would be a compliant client if it rejected all JWKS that were not explicitly used for a specific token.
Would we also consider these theoretical clients compliant? Would a client which rejects a set of keys because it lists only kty RSA also be considered compliant? Would a client which rejects a set of keys because the client only supports RSA kty, but the set of keys includes an EC kty also be considered compliant?
james-d-elliott commentedon Aug 28, 2026
Small additional consideration. This could also theoretically be addressed in an OpenID Connect 1.0 Core errata, and requiring all existing clients to recertify by a deadline or their certification would be revoked, provided there is relief in the terms / agreement for this.
fkj commentedon Aug 28, 2026
In yesterday's working group call there was consensus to interpret the SHOULD requirement as a MUST for certification purposes, see #2147.
This will not impact previous certifications, as certifications don't expire (though certifications are labeled with the date of certification so it is possible to determine whether an implementation was certified under this interpretation or not).
Several working group members have expressed interest in contributing to PQC guidance documents such as blog posts or white papers. Stay tuned for updates and contact the chairs if you also want to contribute.
james-d-elliott commentedon Aug 28, 2026
Sounds like a good outcome and long term position.
Akila94 commentedon Oct 8, 2026
Nimbus JOSE/JWT library fixed the "not ignoring unknown keys" issue with the following commits for the following versions.
v9.x here: https://bitbucket.org/connect2id/nimbus-jose-jwt/commits/a36cb33
v8.x here: https://bitbucket.org/connect2id/nimbus-jose-jwt/commits/ef8d086
bc-pi commentedon Oct 8, 2026
The jose4j JWT/JOSE library has been ignoring problematic keys in a key set since 2015 https://bitbucket.org/b_c/jose4j/commits/5b5fde with a specific test for unknown kty in 2020 https://bitbucket.org/b_c/jose4j/commits/5b5fde
EgorKhaklin commentedon Oct 11, 2026
One more data point for the count, from an RP-side verifier: polaris-oid4vp (Python, Apache-2.0), as of main at fbd6222c, keeps using the keys it understands when a configured JWK set also holds keys it does not. An AKP (ML-DSA-65) key, an unknown
kty, or an OKP key placed before or after the P-256 key leaves the P-256 key usable (including an AKP key that reuses the EC key'skid), and a set with only the AKP key is refused for having no usable key. These are tests intest_sdjwt.py(test_an_akp_key_before_or_after_the_ec_key,test_an_unknown_kty_before_or_after_the_ec_key,test_an_okp_ed25519_key_before_or_after_the_ec_key,test_an_akp_key_reusing_the_ec_keys_kid,test_a_set_holding_only_the_akp_key_is_refused). It is one implementation's behaviour, measured, not a recommendation.Breno-de-Medeiros commentedon Nov 18, 2026
I proposed the following internet-draft to improve key agility in OpenID key discovery:
https://datatracker.ietf.org/doc/draft-demedeiros-oidc-crypto-agility/
The short version of this is to add a jwt_signing_algorithm parameter to both the authorization request and the jwks_uri, allowing a client to select the signing algorithm (e.g., asking for pqc) and request a document containing (only) the algorithm-matched keyset.
The server metadata advertises support for these request parameters and simultaneously advertises the options available for signature algorithm selection by clients by including a list of authorization_server_jwt_signing_algorithms_supported (which contains as values one or more of the IANA registered values for JWS)