Is JWT signed with RS256 quantum safe?

The sources listed on this page treat RS256 as depending on RSA public-key signatures that are scheduled for migration to post-quantum algorithms, with NCSC setting 2035 for completion. Identity and platform teams should plan the migration of their token signing and key distribution now.

On this page

What the published guidance says about RS256 JWTs and quantum attack

If you run an identity provider or API that issues or verifies RS256-signed JSON Web Tokens, the published guidance is clear about where RSA-based signatures stand: they are treated as quantum-vulnerable and due for replacement. The UK's National Cyber Security Centre (NCSC) sets three milestones for the move to post-quantum cryptography: by 2028, define migration goals, complete a full discovery exercise and build an initial plan; by 2031, carry out the early, highest-priority migrations; and by 2035, complete migration of all systems, services and products. NIST's final NIST IR 8547, published on 27 October 2026, takes the same position: it identifies the quantum-vulnerable standards that products must move away from and the post-quantum standards they will need to move to. Neither document is a finding that a particular token is broken today.

This answer matters to teams that issue RS256 tokens with a signing key, to teams that verify them against a published JSON Web Key (JWK) set, and to anyone who has pinned RS256 in a client or gateway. It also matters to teams whose tokens carry long validity periods, because NCSC states that a system will not provide quantum-secure authentication until the public-key infrastructure behind it has been migrated. For RS256, that means the signing key, the JWK set your verifiers fetch, and any certificate chain that backs them. Confirm with your identity vendor or library which RS256 key sizes and JWK publication paths you run, since the sources on this page do not set a migration date for any specific product.

The guidance also points to a practical difference between signing and key exchange. The German BSI notes that signatures usually only need to remain secure in the short term, but that signature keys with long validity periods still need a timely change, with migration periods factored in. For JWTs this means a short-lived access token signed with RS256 carries less exposure than a long-lived signing key that verifiers trust for years. Check the key lifetime and the rotation schedule first. The post-quantum signature alg values in RFC 9964, ML-DSA-44, ML-DSA-65 and ML-DSA-87, are a Proposed Standard, and that document notes that base64url encoding makes encoded signatures larger than the raw ML-DSA sizes, so test token size and verifier support before you plan a switch.

Which published documents address RS256 and what each one sets

This table lists each published source that addresses RS256 or RSA-signed tokens, what it says about them, and the dates it sets. Read it to see which documents define RS256, which set migration milestones, and which only describe post-quantum signature options. The main takeaway is that the sources set migration dates for public-key systems in general, but none of the listed documents says that RS256 tokens are quantum safe.

SourceWhat it says about RS256 or RSA-signed tokensDates it sets
NCSC timelines (20 March 2025)Says authentication stays quantum-vulnerable until the PKI behind it is migrated, and that a system will not provide quantum-secure authentication until PKI migration is complete.2028 discovery and plan, 2031 early priority migration, 2035 migration of all systems complete.
NIST IR 8547 finalIdentifies existing quantum-vulnerable standards and the post-quantum standards products will need to move to, and supports Executive Order 14412 and OMB M-26-15.Final published 27 October 2026, obsoleting the draft of 12 November 2024.
BSI post-quantum page with TR-02102-1 version 2026-01Says migration should be pushed forward and post-quantum schemes should where possible be combined with classical schemes. Notes signatures usually only need short-term security, but long-validity signature keys need timely change.Current technical guideline listed as TR-02102-1 version 2026-01. No migration date stated in the listed facts.
RFC 7518Defines RS256 as RSASSA-PKCS1-v1_5 with SHA-256, rated Recommended, and requires keys of 2048 bits or larger for RS256, RS384 and RS512.No dates set in the listed facts.
RFC 7519Defines the JWT format and the alg header, and says RS256 is recommended while only HS256 and none are mandatory. Leaves which algorithms apply to an application decision.No dates set in the listed facts.
OpenID Connect Core 1.0Says the ID Token alg SHOULD be the default of RS256, which makes RS256 the default signing algorithm for ID Tokens in that profile.No dates set in the listed facts.
RFC 9964 (May 2026)Registers ML-DSA-44, ML-DSA-65 and ML-DSA-87 as optional JOSE alg values and defines the AKP key type. Notes base64url encoding makes post-quantum signatures larger than their raw sizes.Proposed Standard, May 2026. Confirm the current status before relying on it.

Why the guidance treats RS256 signatures as quantum-vulnerable

The main reason RS256 is treated as quantum-vulnerable is the algorithm it depends on. RS256 is RSASSA-PKCS1-v1_5 with SHA-256, as defined in RFC 7518, and it relies on an RSA key pair. The guidance treats RSA as public-key cryptography that is scheduled for replacement, not as a primitive that will remain sound. NCSC's PQC timelines guidance says that the systems and products relying on this kind of traditional public-key cryptography are expected to be deprecated, with migration to post-quantum cryptography completed by 2035. In practice, the RSA public key that a verifier fetches from a JWK set is part of that same public-key infrastructure, so the token's signature and the key that checks it fall under the same migration.

The guidance is specific about authentication. NCSC states that a system will not provide quantum-secure authentication until the PKI behind it has been migrated. For a JWT signed with RS256, that means the signature check stays quantum-vulnerable for as long as the RSA keys in the JWK set and the issuing PKI are still in use. NCSC also notes that there is not yet agreement on how post-quantum signatures should be incorporated into WebPKI certificates. Teams should therefore ask their identity provider whether and when it will move its signing keys, and whether the JWK set will publish post-quantum keys alongside or instead of RSA keys.

HS256 is a different case. It is a symmetric HMAC algorithm, and the sources listed on this page do not place it in the same category as RS256. The migration guidance concerns public-key algorithms, so an HS256 token does not inherit the RS256 finding. Teams should not read this as a statement that HS256 is quantum safe, only that the sources do not group it with RSA signatures. Confirm the algorithm family in use by reading the alg header of each issued token and checking the identity provider's signing configuration.

Where RS256 tokens and their keys are relied on in practice

RS256 signatures are checked in several places: the identity provider that issues tokens, the keys published for verifiers, the certificates that anchor trust, and the services that verify tokens without calling back to the issuer. Each place carries its own migration question, so the risk is spread across the whole token lifecycle rather than located in one component.

ID Tokens under OpenID Connect

OpenID Connect Core 1.0 says the ID Token alg value SHOULD be the default of RS256, so RS256 is the default signing algorithm for ID Tokens in that profile. Relying parties that accept the default inherit the RSA signature without choosing it. Check which alg your identity provider emits for ID Tokens and whether your relying parties restrict accepted algorithms. Migration of this signature depends on the identity provider's own support for post-quantum JOSE algorithms, which the sources do not show as available in OpenID Connect Core 1.0.

OpenID Connect Core

Access tokens verified against a JWK set

Resource servers usually verify RS256 access tokens with an RSA public key taken from a JWK set. RFC 7519 says which algorithms may be used in a given context is an application decision, so each resource server decides which alg values it accepts. Confirm that every verifier pins the expected algorithm and key type. NCSC notes that authentication stays quantum-vulnerable until the PKI behind it has been migrated, so the verifiers cannot be fixed on their own.

RFC 7519

The JWK publication endpoint

The JWK set endpoint is where the public RSA keys used for RS256 are published to verifiers. Anyone who fetches the keys gets the material needed to check signatures, so the endpoint decides which keys verifiers trust at any moment. Review how keys are added, rotated and retired, and whether verifiers cache old keys. RFC 9964 introduces the AKP key type for post-quantum ML-DSA keys, but the sources do not say that the publication endpoint of any particular identity provider serves such keys today.

RFC 9964

Token-signing certificates in the PKI

Where an RS256 signing key is wrapped in an X.509 certificate, the certificate is part of the PKI that anchors trust. NCSC states that a system will not provide quantum-secure authentication until migration of its PKI is complete, and that certificate-based PKI follows more slowly than confidentiality services. NCSC also states there is not yet agreement on how to incorporate post-quantum signatures into WebPKI certificates. Ask who issues the signing certificate and whether the issuer has a published migration plan.

NCSC PQC timelines

API gateways verifying without issuer contact

API gateways and services that verify RS256 tokens locally, without contacting the issuer on each request, hold a copy of the public key and check signatures offline. Their trust decisions therefore depend on whichever key they cached, and they stay in service after the issuer has changed algorithms. Inventory which services verify tokens this way, how long they cache keys, and how they are updated. NCSC notes that migration of the WebPKI signature has no agreed approach yet, so these verifiers need a plan that does not assume one exists.

NCSC PQC timelines

What the sources say about long-lived tokens and signature keys

For an RS256 JWT, the question that matters most is how long the signing key and the tokens it issues remain valid, because the German Federal Office for Information Security (BSI) draws a line between two threats. BSI's post-quantum guidance presents 'store now, decrypt later' as a threat to long-term confidentiality and ties it to key-agreement schemes, which it says are the first to be threatened. BSI states that signatures usually only need to be secure in the short term. Read together, this means an RS256 token that expires within minutes or hours carries little exposure from a future quantum attack on its signature, while the RSA key that verifies it may still need attention if it is expected to stay in service for years.

BSI adds that signature keys with long validity periods also need a timely change, with migration periods factored in. For an RS256 deployment, this points to the signing key and the JWK set that publishes its public key. Engineers should list every issuer that signs tokens with RS256, record the key's creation date, rotation schedule and intended lifetime, and identify any token type that is long-lived, such as refresh tokens, service credentials or tokens stored outside the identity provider. Those are the cases where the signature's validity period, not just its lifetime per token, decides whether a planned key change is urgent.

The sources listed on this page do not give a number of years for a signature key's validity or a date for when RS256 keys must be replaced. NCSC's timelines set 2035 as the milestone for completing migration of systems, services and products, and say a system will not provide quantum-secure authentication until its PKI migration is complete. Confirm with your identity provider's documentation how its signing keys are rotated and whether it has published a post-quantum signature option, and check the current status of BSI TR-02102-1 for its recommendations on key lifetimes before setting a rotation policy.

What the guidance says to use instead of RS256

RFC 9964, a Proposed Standard published in May 2026, registers three post-quantum signature algorithm values for JWS: ML-DSA-44, ML-DSA-65 and ML-DSA-87. These are JOSE serializations of ML-DSA, the signature scheme standardised in NIST FIPS 204. Each is registered with the implementation requirement Optional, so a JWT library may support them and another may not. The RFC also introduces the Algorithm Key Pair (AKP) key type, whose JWK parameters are alg, pub and priv. For ML-DSA AKP keys, the priv value is a 32-byte seed.

  • ML-DSA-44, ML-DSA-65, ML-DSA-87: the three alg values registered for JWS by RFC 9964.
  • Optional implementation requirement: no JOSE implementation is obliged to support these values, so check the library's release notes before relying on them.
  • AKP key type: JWK keys for these algorithms use the alg, pub and priv parameters.
  • 32-byte seed: the priv value for ML-DSA AKP keys is a seed, not the full private key.
  • Parameter set choice: the sources list the three sets but do not recommend one over another for JWT use, so decide with your security team.

Before adopting any of these values, confirm with your JWT library vendor which versions implement RFC 9964 and which parameter sets they accept.

The NCSC milestones that bear on an RS256 migration

The timeline starts with NCSC's 2028 milestone, where organisations set migration goals, complete a full discovery of where cryptography is used, and build an initial plan. The 2031 milestone covers early, highest-priority migration, which is where token signing and the JWK sets that verifiers rely on should be addressed. The 2035 milestone requires all systems, services and products to be migrated. NIST IR 8547, finalised on 27 October 2026, is marked on the timeline as the standard that identifies the post-quantum replacements. NCSC notes that authentication will not be quantum-secure until the PKI behind it has been migrated.

NCSC's three migration milestones, with NIST IR 8547 marked as the reference standard.

What to do about RS256-signed JWTs, in order

This sequence turns the question into a documented position you can defend to auditors and customers. It starts with an inventory of every RS256 issuer and verifier, then ties the work to NCSC's published milestones and to the vendor and standards position on post-quantum JWS. The output is a dated, sourced record of where each token path stands and what is planned.

  1. Find every RS256 issuer and verifier

    Platform and identity engineers list each component that signs RS256 JWTs or verifies them, including authorization servers, API gateways, microservices that validate bearer tokens, and client libraries. For each one, record the key size in use (RFC 7518 requires 2048 bits or larger for RS256), where the public key is published, and whether it is served through a JWK set. This step is done when every issuer and verifier has an entry in one inventory, and every entry names its owner and the JWK endpoint it depends on.

  2. Read the NCSC milestones that apply

    Security leads read NCSC's post-quantum migration timelines and map the three milestones to their own organization: defining migration goals, discovery and an initial plan by 2028, early highest-priority activities by 2031, and completion of migration by 2035. NCSC states that authentication does not become quantum-secure until the PKI behind it has been migrated, so the inventory from the previous step is the input to this mapping. This step is done when each milestone has a named owner and a note on which inventory entries it covers.

  3. Ask vendors about post-quantum JWS support

    Procurement and platform teams send written questions to each identity provider and JWT library vendor asking what post-quantum signature support they plan, which JOSE alg values they will implement, and on what schedule. Ask specifically whether they support the ML-DSA alg values defined in RFC 9964 (ML-DSA-44, ML-DSA-65, ML-DSA-87) and the AKP key type. Note that RFC 9964 registers these alg values with implementation requirement Optional, so a vendor is not obliged by the standard to support them. This step is done when each vendor's answer is filed with its date and the version it applies to.

  4. Check RFC 9964 interoperability before planning

    Engineers confirm, for the libraries and gateways in the inventory, whether they can parse ML-DSA AKP keys and verify JWS signatures using the RFC 9964 alg values. RFC 9964 notes that base64url encoding makes encoded signatures larger than the raw ML-DSA signature sizes it lists, so teams should test token and header size limits in proxies and clients. Do not assume two implementations are interchangeable: test each version you run. This step is done when a test report shows, per component, which alg values verify correctly and which token size limits apply.

  5. Plan the change around the verifier keys

    Architects write a migration plan that sequences the work from the inventory, starting with the verifiers that depend on JWK sets and the issuers that publish them. Note that BSI recommends post-quantum schemes be combined with classical ones in a hybrid approach where possible, and that signatures usually need to stay secure only in the short term while long-validity signing keys need a timely change. NCSC notes there is not yet agreement on incorporating post-quantum signatures into WebPKI certificates, so the plan should separate JWT signing keys from certificate chains. This step is done when the plan names an owner, a dependency order and a rollback path for each component.

  6. Test the plan against RFC 9964 alg values

    QA and security engineers run the migration plan in a staging environment, issuing and verifying tokens with the RFC 9964 alg values where a component supports them, and checking that RS256 tokens still verify during the transition. They confirm that verifiers reject tokens whose alg header is not on the allowed list, which RFC 7519 leaves to the application to decide. This step is done when test results for each component are recorded and any failures have an owner and a fix date.

  7. Record the position for auditors and customers

    Compliance and security leads write a dated position statement covering the RS256 inventory, the NCSC milestones adopted, vendor answers, interoperability test results and the migration plan. Each claim in the statement cites its source, such as the RFC, the NCSC guidance or the vendor's written reply, and the statement says plainly what is not yet supported. Keep it under version control and review it when vendor answers or NCSC guidance change. This step is done when the statement is approved, stored with its version history and available to the customer questionnaire and audit owners.

Claims readers meet about RS256 and quantum attack, checked against the sources

Several claims circulate about whether RS256 is safe against a quantum attack and what to do about it. Each card below takes one claim and sets it against what RFC 7518, RFC 9964 and NCSC's migration guidance actually say, so you can check the claim before acting on it.

A larger RSA key fixes it

The idea is that moving from a 2048-bit RSA key to a bigger one restores protection against a quantum attack. RFC 7518 sets 2048 bits as the minimum for RS256, which covers classical key sizing. The sources listed here do not describe a larger RSA key as a fix for quantum attack, and NCSC's guidance treats the migration to post-quantum algorithms as the route. Before relying on a key-size change, ask your identity provider or library owner what their own documentation says about quantum resistance.

RFC 7518 text

RS256 must be replaced today

Some teams read the quantum risk as requiring an immediate switch away from RS256. NCSC's guidance does not set that requirement. It sets three milestones: defining migration goals and a plan by 2028, early high-priority migration by 2031, and migration of all systems by 2035. NCSC also states that authentication is not quantum-secure until the PKI behind it is migrated. Plan your RS256 work against those milestones and your own risk assessment.

NCSC migration timelines

HS256 is safe

HS256 uses a shared secret with HMAC rather than a public-key signature, so it is often assumed to be unaffected. The sources listed on this page do not address HS256 in relation to quantum attack, so that assumption cannot be confirmed from them. Check the specific symmetric-key guidance for your context, and do not treat HS256 as cleared on the basis of this page.

RFC 7519 text

ML-DSA is mandatory for JWT

Because ML-DSA is the post-quantum signature standard, it is easy to assume every JWT must now use it. RFC 9964 registers ML-DSA-44, ML-DSA-65 and ML-DSA-87 as JOSE algorithms with an implementation requirement of Optional, so it is not mandatory for JWT. If you adopt it, note that base64url encoding makes the signature larger than the raw ML-DSA size, and confirm that your verifiers support the AKP key type before deployment.

RFC 9964 text

Questions readers ask about RS256 JWTs and quantum attack

Does a larger RSA key make RS256 JWTs quantum safe?

No. A larger RSA key does not make RS256 quantum safe, because the weakness is in the public-key math itself rather than in the key length. RFC 7518 section 3.3 sets 2048 bits as the minimum for RS256, and that minimum is a classical requirement. NCSC's guidance treats RSA-based authentication as quantum-vulnerable until the PKI behind it has been migrated, and it does not offer a key length as a fix. Moving to a post-quantum signature algorithm is the published direction. Confirm the exact key sizes your identity provider issues and the migration path it has announced.

Must RS256 be replaced right now?

The published guidance sets dates rather than an immediate deadline for RS256. NCSC's migration timelines call for defining goals and a discovery exercise by 2028, early priority migration by 2031, and completion of migration for all systems by 2035. NCSC also says a system will not provide quantum-secure authentication until its PKI migration is complete. BSI's guidance asks that migration be pushed forward now, and says signature keys with long validity periods need a timely change with migration periods factored in. Start the inventory now so the replacement fits inside those milestones.

What replaces RS256 when post-quantum signing is adopted?

RFC 9964, a Proposed Standard published in May 2026, defines ML-DSA signatures for JOSE and registers ML-DSA-44, ML-DSA-65 and ML-DSA-87 as JWS alg values. ML-DSA is the signature scheme standardized in NIST FIPS 204. The RFC introduces the Algorithm Key Pair key type, with alg, pub and priv parameters, and lists the post-quantum alg values as optional to implement. The signatures are larger than classical ones, and base64url encoding makes the encoded signature larger again, so check token size limits in your gateways and clients. Confirm that your identity provider and libraries support these values before relying on them.

Is data in old RS256 tokens at risk today?

A signed token is not an encrypted one, so its claims are readable by anyone who holds it, and the signature itself protects integrity rather than secrecy. The published guidance treats signatures as needing security mainly over their validity period, which BSI says is usually short. BSI's point about long-lived keys still applies: a signing key with a long validity period needs a timely change. Where a token carries sensitive claims, check whether those claims also travel through an encrypted channel, since 'store now, decrypt later' applies to key agreement first. Confirm the token lifetime and the key validity period with your identity provider.

Does the verifier side of an RS256 JWT also need changing?

Yes. An RS256 token is checked with an RSA public key, usually published in a JWK set, so the verifier depends on the same key infrastructure. NCSC says authentication stays quantum-vulnerable until the PKI behind it is migrated, which covers the keys that services publish and check against. Verifiers that accept a fixed list of algorithms need that list updated to include the post-quantum values once your provider supports them. Test that your API gateways and libraries can parse the new key type and signature size before cutover.

Is there an agreed way to put post-quantum signatures into certificates?

Not yet. NCSC states that there is currently no agreement on how to incorporate post-quantum signatures into WebPKI certificates. That affects the certificates that secure the endpoints where token keys are fetched, so the transport layer may lag the token layer. NCSC also says certificate-based PKI will follow more slowly than the confidentiality services. Track the relevant NIST and IETF work, and ask your vendor how it plans to handle certificate replacement once a standard is agreed.

What should I ask an identity vendor about RS256 migration?

Ask which signing algorithms the product issues today and whether it supports ML-DSA alg values from RFC 9964. Ask for the date of its migration plan and how it maps to the NCSC milestones of 2028, 2031 and 2035. Ask whether it can run hybrid signing during the transition, which BSI recommends where possible. Ask how it rotates signing keys, how long tokens remain valid, and whether published JWK sets can carry the new key type. Ask who on its side owns certificate replacement, and what it will charge for that work.

How DeployOpen works on this

DeployOpen approaches RS256 token signing as a migration of the JWT signing keys, verification paths and PKI behind them, not as a single setting to flip. We start from where your services issue and verify JWTs, record which algorithms and key sizes are in use, and plan the change against NCSC's 2028, 2031 and 2035 milestones and the published guidance on post-quantum signature alg values.

How we scope

  • Inventory every service that issues or verifies RS256 JWTs, including ID Token signing in OpenID Connect deployments.
  • Record which RSA key sizes are in use, confirming they are at least 2048 bits as RFC 7518 requires for RS256.
  • Agree in writing which token consumers, JWK set publishers and certificate chains are in the migration scope.

How we build

  • Prepare a test environment that issues JWTs with candidate ML-DSA alg values (ML-DSA-44, ML-DSA-65 or ML-DSA-87) as RFC 9964 defines them.
  • Test verifier compatibility, since base64url encoding makes encoded ML-DSA signatures larger than the raw sizes RFC 9964 lists.
  • Check how your identity provider, libraries and gateways handle the AKP key type and the alg header before any production change.

How we hand over

  • Deliver a written inventory of token issuers, verifiers, algorithms, key sizes and JWK set locations for your own records.
  • Document the migration plan against the NCSC milestones, with the specific steps each service owner must take.
  • Provide test results showing which versions were checked for compatibility, so your team can confirm them before rollout.

How we support

  • Engagements are fixed-scope, with scope and deliverables agreed in writing before work starts.
  • Ongoing upgrades, re-testing as library versions change, and continuous support are available as a retainer.
  • Confirm with your identity provider and WebPKI certificate authority how they plan to carry post-quantum signatures, since NCSC notes no agreement yet exists.

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.