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
What's happening
Finding3Two 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.
flag a problem with BI-FIND-2026-1063
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.
flag a problem with BI-FIND-2026-1064
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.
flag a problem with BI-FIND-2026-1065
Section by section
3showing 3 of 3
[1]Threats and vulnerabilities catalogue
Yaron Sheffer, Intuit · Dick Hardt · Michael B. Jones, Self-Issued Consulting
Standards
Threats and vulnerabilities catalogue
Yaron Sheffer, Intuit · Dick Hardt · Michael B. Jones, Self-Issued Consulting
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
Core practices: algorithms, validation, issuer, audience, typing
Yaron Sheffer, Intuit · Dick Hardt · Michael B. Jones, Self-Issued Consulting
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
Input hardening and what is new versus RFC 8725
Yaron Sheffer, Intuit · Dick Hardt · Michael B. Jones, Self-Issued Consulting
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
