Skip to content
IAM Insights

Briefing · Draft · source · updated · Boston Identity

The draft replacing RFC 8725 requires rejecting malformed JWTs but only recommends denial-of-service limits

RFC 8725 is the IETF's best-practice guide for JSON Web Tokens, the format used for OpenID Connect ID tokens and for OAuth access tokens. Its replacement adds fixes for attacks found since it was published, such as an algorithm name spelled "noNE" slipping past a blocklist. Implementations must reject malformed tokens and libraries must let a verifier tell signed tokens from encrypted ones, while the new limits on costly inputs, such as a cap on decompressed size, are RECOMMENDED.

IETF datatracker · Yaron Sheffer, Dick Hardt, Michael B. Jones · January 12, 2026 · read

share
6,063 words. With Yaron Sheffer, author, Intuit; Dick Hardt, author; Michael B. Jones, author, Self-Issued Consulting.
01

What's happening

Finding3
BI-FIND-2026-1063Lead finding

Two of the draft's fixes for attacks found since RFC 8725 are MUSTs: telling a signed JWT from an encrypted one and rejecting tokens with disallowed characters.

Two of the fixes the draft adds for attacks found since RFC 8725 are MUSTs. Libraries must let the verifier tell a signed JWT from an encrypted one; the draft cites CVE-2023-51774 for libraries that do not distinguish a successful decryption from a successful signature validation. And any token with characters other than letters, numbers, dash, underscore and period "is not a JWT and MUST be rejected", the draft's answer to tokens verified in JSON form but read as compact ones. A third fix is softer: against an algorithm name like "noNE" slipping past a blocklist, libraries SHOULD use allowlists.

high confidencebest source: independent researchobserved Jan 2026EvidenceThreats and vulnerabilities catalogueCore practicesSection 3
flag a problem with BI-FIND-2026-1063
BI-FIND-2026-1064

The draft only recommends its two denial-of-service limits: a cap on the PBES2 iteration count and an upper limit on the decompressed size of an encrypted JWT.

Both denial-of-service limits the draft adds are only RECOMMENDED. Recipients are advised to reject a PBES2 iteration count ("p2c") above double OWASP's recommended count, which the draft gives as 600,000 at time of publishing, and to set a reasonable upper limit on the decompressed size of an encrypted JWT, with 250 KB as its example.

high confidencebest source: independent researchobserved Jan 2026EvidenceThreats and vulnerabilities catalogueSection 3
flag a problem with BI-FIND-2026-1064
BI-FIND-2026-1065

The draft says mandating explicit typing for existing kinds of JWT would be a breaking change, as legacy tokens without a typ header would be rejected.

The draft says that retrofitting mandatory explicit typing onto existing kinds of JWT would be a breaking change: a token from a legacy implementation without a "typ" header would be rejected by an updated one that requires it. What it says can be added without breaking anything is a rule that if "typ" is present, it MUST be the expected value. A "typ" of plain "JWT" does not count as explicit typing, and explicit typing is RECOMMENDED for new uses. This passage on older JWT kinds is the one change the -03 change log records.

high confidencebest source: independent researchobserved Jan 2026EvidenceCore practices
flag a problem with BI-FIND-2026-1065
02

Section by section

3

showing 3 of 3

[1]

Threats and vulnerabilities catalogue

Yaron Sheffer, Intuit · Dick Hardt · Michael B. Jones, Self-Issued Consulting

Standards

Section 2 lists thirteen threat classes, each pointing to a fix in section 3: "none" and RS256-to-HS256 algorithm swaps, weak HMAC keys, signed-versus-encrypted confusion, compression length leaks, invalid-curve ECDH-ES, multiple JSON encodings, substitution and cross-JWT confusion, attacks on the server through header values, costly PBES2 counts, case-insensitive algorithm checks, decompression bombs and format confusion. The evidence is cited attacks and CVEs.

technical artifactfrom published text

[2]

Core practices: algorithms, validation, issuer, audience, typing

Yaron Sheffer, Intuit · Dick Hardt · Michael B. Jones, Self-Issued Consulting

Standards

The checks a verifier runs on every token: use only the algorithms the caller chose, one algorithm per key, validate every layer of a nested JWT, and be able to tell signed tokens from encrypted ones. When a token names an issuer, its keys must belong to that issuer, and an audience claim is required where one issuer can serve several relying parties. Explicit typing is RECOMMENDED for new kinds of JWT; making it mandatory for existing kinds would break interoperability.

technical artifactfrom published text

[3]

Input hardening and what is new versus RFC 8725

Yaron Sheffer, Intuit · Dick Hardt · Michael B. Jones, Self-Issued Consulting

Standards

Header values are untrusted input. A "kid" should be validated or sanitized against SQL or LDAP injection, and "jku" or "x5u" URLs SHOULD be matched to an allowlist to stop server-side request forgery. Then the newer limits: a token with characters outside the compact JWT alphabet MUST be rejected, while caps on PBES2 iteration counts and on decompressed JWE size are RECOMMENDED.

technical artifactfrom published text

Terms used

JSON Web Token Best Current Practices
IETF best practices for JWT validation: algorithm checks, key handling, explicit typing
IETF
The body that writes the internet's protocol standards, including OAuth, JWT, and the workload-identity work known as WIMSE.
JWT
A compact, signed token that carries claims (who, for what, until when) between systems. It is the usual shape of an OAuth access token.
OpenID Connect
OpenID Connect — an identity layer on top of OAuth 2.0 that lets an app verify who the user is through an identity provider; the protocol behind most “Sign in with…” buttons.
ID Token
A signed JSON Web Token (JWT) that an OpenID Connect provider issues to tell an app who signed in. Required claims include the issuer, subject, audience, expiry (exp) and issued-at time.
OAuth
The web's standard framework for delegated authorization — letting one application act at another on a user's (or machine's) behalf without sharing passwords.
Access token
An OAuth 2.0 credential, usually an opaque string, representing a specific scope and lifetime of access that the resource server enforces when a client presents it.
JavaScript Object Notation (JSON)
The standardized JSON data-interchange syntax, defined in RFC 8259.

Read next

Was this briefing useful?

Share this briefing

Every finding, forecast and open question on this site has a permanent ID. If we reword one, its ID stays the same, so a citation keeps pointing to the same claim.

Follow us on LinkedInRSS feed

Working on an identity problem this research touches? Talk to Boston Identity