Abstract
A JSON Web Token is a set of claims carried in a signed, MAC-protected, encrypted or (where policy allows) unsecured structure, and it is only as trustworthy as the code that checks it. Why does such a simple object keep producing authentication bypasses? Because the format leaves most decisions to the verifier, and verifiers keep getting them wrong in the same few ways. They let the token name its own algorithm or key. They accept a valid signature over claims meant for another audience, issuer or purpose. Two parsers in the same code path read the token differently. Or the signing secret ships in a default configuration file. Dated advisories from 2015 to November 2026, including those for HashiCorp’s cap library, Crypt::JWT, PyJWT and Hono, show each class recurring. RFC 8725 and its successor draft set out what implementers must do, and a reviewer can test each requirement directly: the forged cases, and also the absent-claim and wrong-audience cases. The design choices that remove whole classes of failure are fixing the algorithm and key by configuration, keeping one key for one purpose, requiring the claims a profile needs, typing tokens explicitly, and using opaque tokens where revocation matters.
What a JWT is, and what it is not
Five specifications and two serializations
JSON Web Tokens come from a family of IETF documents published together in May 2015. RFC 7519 defines the JWT itself: a JSON object of “claims” carried as the payload of a JWS or the plaintext of a JWE, or in an Unsecured JWT with no protection at all.1 RFC 7515, JSON Web Signature (JWS), defines how that payload is signed or protected with a MAC. RFC 7516, JSON Web Encryption (JWE), defines how it is encrypted.23 RFC 7517 defines JSON Web Keys (JWK), a JSON representation of keys and key sets.4 RFC 7518, JSON Web Algorithms (JWA), lists the algorithm identifiers such as HS256 (HMAC with SHA-256), RS256 (RSA PKCS#1 v1.5 signatures with SHA-256), ES256 (ECDSA on P-256) and none.5
A JWT is always represented in one of two compact serializations. The JWS form is three base64url segments separated by dots: a header, a payload and a signature or MAC value, which is empty for an Unsecured JWT. The JWE form has five segments.13 The header is a small JSON object naming the algorithm in alg and, optionally, a key identifier kid, a type typ, and other parameters. When the claims are carried directly, the payload is the claims set; in a nested JWT it is another JWT. Confidentiality needs JWE, either alone or wrapping a signed JWT as a nested JWT. In a JWS that carries the claims directly, the payload is only base64url-encoded, and anyone who holds the token can read every claim. OWASP’s cheat sheet puts the point directly: a JWS “provides integrity and authenticity, but not confidentiality”.6
JWS and JWE also define a JSON serialization. JWTs must use the compact form, but some JWS libraries accept both, which produced at least one forgery, discussed below.
A claims container with optional claims
RFC 7519 registers seven claim names: iss (issuer), sub (subject), aud (audience), exp (expiration time), nbf (not before), iat (issued at) and jti (JWT ID). It then states that “None of the claims defined below are intended to be mandatory to use or implement in all cases”. Each definition ends with “Use of this claim is OPTIONAL”, and the processing of iss, sub and aud “is generally application specific”.1 For a claim that is present there are rules: a recipient not named in aud must reject the token, and exp and nbf must be enforced, with “some small leeway, usually no more than a few minutes, to account for clock skew”.1 Whether a claim must be present is left to the application or a profile.
The same applies to algorithms. RFC 7519 makes only HS256 and none mandatory to implement. Its validation procedure closes with “it is an application decision which algorithms may be used in a given context”, and an otherwise valid JWT whose algorithms are not acceptable to the application “SHOULD” be rejected.1
A JWT therefore does not carry its own security policy. Whether the key is the right one, whether the algorithm is acceptable, whether the token was meant for this recipient and whether it is still valid are questions the verifier must answer from its own configuration. Each failure class below is a case where the verifier answered one of them from the token, or did not ask.
Where JWTs carry authority
Three uses show the range. In OpenID Connect, the ID token that tells a relying party who signed in is a JWT. OIDC Core sets out its validation in detail. The issuer must “exactly match” the expected value. The audience must contain the client’s own client_id, and the token must be rejected if it lists additional audiences the client does not trust. The signature must be checked with keys from the issuer. The one exception is in the Authorization Code Flow validation procedure, which the Hybrid Flow adopts for ID tokens returned from the token endpoint: when the client receives the ID token directly from the token endpoint, TLS server validation may stand in for the signature check. The exception does not cover an ID token returned through the authorization endpoint. exp must be in the future.7 The OAuth 2.0 framework “does not mandate any specific format for access tokens”, but RFC 9068 (October 2021) defines a JWT profile for access tokens. It requires iss, exp, aud, sub, client_id, iat and jti. Resource servers must check that typ is at+jwt or application/at+jwt, that iss matches exactly, that aud names them, and that alg is not none.8 The third use is less formal: session cookies and service-to-service bearer tokens minted by an application or gateway for itself, where no profile exists and every rule is local.
A fourth is newer. SD-JWT, published as RFC 9901 in November 2025, lets an issuer sign digests of claims so that a holder can disclose only some of them, and can add a Key Binding JWT that proves possession of a key. In RFC 9901’s terms, an SD-JWT is an issuer-signed JWT followed by zero or more disclosures, separated by tildes; an SD-JWT+KB is an SD-JWT with a Key Binding JWT appended. Neither is itself a single JWT. RFC 9901 states that the none algorithm “MUST NOT be accepted” when validating the issuer-signed JWT or the Key Binding JWT.9 Its use in wallet credentials is covered in our article on selective disclosure in identity wallets.
Trusting the token to say how it should be checked
“none”
The header’s alg parameter tells the verifier which algorithm produced the signature. The header is part of what is being verified, so when the verifier reads alg it has not yet established that the header is genuine. Tim McLean described the position in March 2015: “in order to validate the token, we have to allow attackers to select which method we use to verify the signature.”10
The first consequence was none. RFC 7518 defines an “Unsecured JWS” with alg set to none and an empty signature, and requires that implementations “MUST NOT accept Unsecured JWSs by default”. Applications “MUST NOT signal acceptance of Unsecured JWSs at a global level”, and SHOULD signal acceptance per object.5 McLean found libraries that treated a token with alg set to none as carrying a verified signature, so anyone could write a token with any payload.10 The early fix in many libraries was a rule that if the caller supplied a key, none was refused. McLean called this “a good idea” that “doesn’t solve the underlying problem: attackers control the choice of algorithm.”10
Blocklists of none then failed in a second way. RFC 7515 defines the alg value as case-sensitive, so noNE is not the registered none algorithm.2 The successor draft to the JWT best-practice RFC records implementations that kept a blocklist of disallowed names but read algorithm values “as if they were case-insensitive”. As a result, an attacker could change alg to noNE and “bypass the security check”.11 PortSwigger’s training material suggests testing filters with “mixed capitalization and unexpected encodings” for the same reason.12
Key confusion: the public key as an HMAC secret
McLean’s second finding was more subtle and more durable. Many libraries exposed one verification function that took a token and a key: verify(token, key). With HMAC, the key is the shared secret. With RSA or ECDSA, the key is the issuer’s public key. An application that expects RS256 tokens passes its RSA public key. If an attacker sends a token whose header says HS256, a library that dispatches on the header will compute an HMAC using the bytes of the public key as the secret. The public key is public. The attacker signs a forged token with HMAC and the same bytes, and verification succeeds.10 The attacker has to reproduce the key exactly as the server holds it, which McLean noted means the “exact same format, and no extra or missing line breaks”. PortSwigger’s guide makes the same observation about PEM formatting.1013
McLean’s proposed library fix was to add an algorithm parameter to the verification function, so that the server, not the token, chooses: “The server should already know what algorithm it uses to sign tokens, and it’s not safe to allow attackers to provide this value.”10 For node-jsonwebtoken the flaw was eventually recorded as CVE-2015-9235, affecting versions before 4.2.2; the NVD entry was published only on 29 May 2018.14 RFC 8725 cites both the write-up and the CVE in its first threat section.15
The same bug, about eleven years on
The fix McLean proposed, and which PyJWT for example adopted, was to require the caller to state which algorithms are acceptable.16 That closes the bug only if the list is narrow, and only if the library’s other defences are complete. The record after 2015 shows both conditions failing.
PyJWT had blocked HMAC verification with keys that looked like public keys, for example keys beginning ssh-rsa. From version 2.0.0 it supported Ed25519, whose OpenSSH public keys begin ssh-ed25519, and that prefix was not on the list. The advisory, published on 24 May 2022 and credited to Aapo Oksman, showed that an application passing such a key with algorithms=jwt.algorithms.get_default_algorithms() would accept an HS256 token signed with the public key. Versions 1.5.0 to before 2.4.0 were affected (CVE-2022-29217).16 In November 2023 a fast-jwt record described the same class through a different gap. Its PEM matcher, which was meant to stop public keys being used as HMAC secrets, did not recognise keys with the BEGIN RSA PUBLIC KEY header. Applications were vulnerable when they used such a key and called the verify function “without explicitly providing an algorithm” (CVE-2023-48223, fixed in 3.3.2).17
The pattern was still producing advisories in 2026. On 13 January 2026 the Hono web framework published two High-severity advisories, both fixed in 4.11.4.18 In the first (CVE-2026-22817), Hono’s JWT middleware treated alg as optional and defaulted to HS256; the v4.11.3 source documents the option as [options.alg=HS256].19 According to the researcher’s account, an application that expected RS256 and passed an RSA public key without setting alg would verify tokens with HMAC using the public key.1820 The maintainers’ fix, committed on 13 January 2026, made alg required and removed “the default HS256 fallback”.21 Here the token did not choose the algorithm. A library default contradicted what the application intended, with the same result. In the second (CVE-2026-22818), the JWK and JWKS middleware used a key’s own alg member when present and otherwise “fell back to using the alg value provided in the unverified JWT header”. The advisory noted that the alg member in a JWK “is optional and commonly omitted in real-world JWKS configurations”.22 RFC 7517 does define that member as optional.4 The fixes made alg a required option for the JWT middleware and required an explicit allowlist of asymmetric algorithms for the JWKS middleware, which now rejects HS algorithms in that context.18
About eleven years separate McLean’s write-up from the Hono advisories, and the mechanism barely changed: a verifier that does not fix the algorithm for each key leaves the choice to the token or to a library default.
Keys named by the token
The JWS header can do more than name an algorithm. It can point at the key. RFC 7515 defines jwk (the public key itself, embedded in the header), jku (a URL for a JWK Set), x5u (a URL for an X.509 certificate chain), x5c (the chain itself) and kid, which is “a hint indicating which key was used”. The structure of a kid value “is unspecified”.2 The specification’s own caution is in its section on key identification: these parameters “MUST be integrity protected if the information that they convey is to be utilized in a trust decision”.2 A key that verifies the signature over the header which supplied it protects nothing. The attacker brings both.
jwk and the embedded key
Cisco’s node-jose, before 0.11.0, trusted a JWK embedded in the header for verification. An attacker could strip the original signature, insert their own public key and re-sign (CVE-2018-0114, published 4 January 2018).23 Perl’s Crypt::JWT had a sharper variant. In September 2018 Jeremy Choi reported that when no key was supplied and no kid matched, the module fell back to the jwk header value. With HS256 in the header, it then used that attacker-supplied key as the HMAC secret.24 Version 0.023, released on 1 September 2018, made header keys opt-in through a key_from_jwk_header option, restricted them to RSA and ECDSA public keys, and made the module fail if a kid was missing or unknown when a key set was configured.25 The flaw was later recorded as CVE-2019-1010263.26
The jwk, x5c and x5u parameters have legitimate uses. OWASP’s cheat sheet states the rule: a verifier must not take its key from the token “unless that key can be tied, through a chain of trust, to a root trust anchor associated with the issuer”. The parameters can point within a trust that already exists, but cannot create it.6
jku, x5u and server-side requests
A jku or x5u header gives a URL. RFC 7515 requires that an HTTP GET retrieving the key set or certificate use TLS, with the server’s identity validated.2 TLS proves only that the attacker’s server is the attacker’s server. PortSwigger’s material describes servers that fetch whatever JWK Set the header names, which makes forging a token a matter of hosting a key set.12 Even when the fetched key is rejected, the verifier has made an outbound request to an address the attacker chose. RFC 8725 lists such URLs among the vectors for server-side request forgery, and says applications SHOULD protect against it, for example by matching the URL to an allowlist. Its successor adds that “When such an allowlist is not available, the authorization server MUST check what a hostname resolves to and avoid making a request if it resolves to a loopback or local IP address”.1511
kid as an injection vector
Because kid has no defined structure, applications use it as a database key or a file name. PortSwigger documents path traversal through kid to a predictable file. Its example is /dev/null, whose empty contents become an HMAC secret the attacker also knows. It also documents kid as a vector for SQL injection when keys are stored in a database.12 RFC 8725 says, in lower-case “should”, that applications should validate or sanitise kid so that key lookup does not create SQL or LDAP injection. The successor draft raises this to “MUST”.1511 A kid should only select among keys the verifier already holds.
When the verifier’s mathematics is wrong
On 19 April 2022 Neil Madden, then at ForgeRock, disclosed CVE-2022-21449, which he called “psychic signatures”. An ECDSA signature is a pair of numbers (r, s). The verification algorithm’s first step is to check that both lie between 1 and n−1. Java’s implementation, rewritten from native code into Java for the Java 15 release, did not check this. A signature with r and s both zero was accepted “for any message and for any public key”.27 JWTs carry ECDSA signatures in the raw format, which made the zero signature simple to encode. Oracle fixed the bug in its April 2022 Critical Patch Update. Madden’s later update reports that only Java 15 to 18 were affected, and NVD’s entry names Java SE 17.0.2 and 18 among supported versions.2728
A verifier that pinned its algorithm and key and checked every claim was still forgeable, because the signature primitive accepted an all-zero input. Madden noted that Project Wycheproof’s test vectors found the issue “immediately” when run against Java 17.27 For a reviewer, the lesson is that “uses ES256 with a pinned key” says nothing about the arithmetic underneath. Testing a verifier should include known-bad signature values, not only well-formed tokens with the wrong key.
Signed, valid, and meant for someone else
RFC 8725 describes substitution attacks, in which a token legitimately presented to one recipient is replayed at another that trusts the same issuer.15 The cross-JWT variant is a token issued for one purpose, such as an ID token or a password-reset link, that is accepted for another. Both are claim-validation failures.
What the specifications require
RFC 7519 already requires rejection when aud is present and does not name the recipient, and when exp or nbf fails.1 RFC 8725 adds conditional requirements. When a JWT contains iss, the application “MUST validate that the cryptographic keys used for the cryptographic operations in the JWT belong to the issuer”. When it contains sub, the application must check that it is a valid subject and/or a valid issuer-subject pair. Where one issuer produces tokens for more than one relying party, the token MUST contain an aud claim, and a recipient that finds the claim missing or not its own “MUST reject the JWT”.15 OIDC Core and RFC 9068 go further for their profiles, requiring exact issuer matching and the recipient’s own identifier in aud.78
Two points are easy to miss. First, “validate iss” means binding the key to the issuer, not comparing a string. OWASP describes the failure: a verifier that looks up a kid across the union of several trusted issuers’ key sets will accept a token whose iss names one issuer while its kid selects another issuer’s key. The signature verifies and the iss comparison passes, because each was checked against a different party.6 Second, a check that runs only when a claim is present is not a requirement. An attacker who controls any trusted signer, or who holds a legitimate token minted for a different purpose without the claim, simply leaves it out.
Crypt::JWT: checks that ran only when the claim was present
That second point is the substance of CVE-2018-25445, published by NVD on 25 November 2026. Crypt::JWT versions before 0.024 “skip issuer, subject, audience and JWT ID checks when the claim is absent or the option is a plain string”. The decode_jwt function ran its verify_iss, verify_sub, verify_aud and verify_jti checks only when the token carried the claim. It honoured an option only as a regular expression or code reference, so “verify_aud => ‘myapp’” was ignored. An application relying on the checks “accepts a validly signed token meant for a different issuer, subject or audience”.29
The change log dates the fixes much earlier. Version 0.024, of 26 March 2019, made decode_jwt fail when a verify_ option was set and the corresponding claim was missing. It was marked “INCOMPATIBLE CHANGES”. Version 0.029, of 22 June 2020, made the options accept plain scalars.25 The public NVD record appeared more than seven years after the first fix. On the same day NVD published three further Crypt::JWT records, each for versions before 0.037_1: a non-constant-time HMAC comparison (CVE-2026-8748), unbounded inflation of zip payloads (CVE-2026-136795) and an uncapped PBES2 iteration count (CVE-2026-136796).303132 The stable release that lists these fixes in the change log is 0.038, of 16 May 2026.25
PyJWT, 2026: an options dictionary that remembered
PyJWT’s CVE-2026-103001 is a claims bypass with no flaw in any claim check. When verify_signature was false, decode() inserted verify_exp, verify_nbf, verify_iat, verify_aud, verify_iss, verify_sub and verify_jti into the caller’s own options mapping, defaulting each to false where the caller had not set it. An application that reused the same dictionary for a later call with verify_signature true inherited the disabled checks. It would then accept “an expired, wrong-audience, wrong-issuer, or wrong-subject token as valid with no exception”, while the signature was still checked.33
The advisory describes the history. The same mutation was reported in 2021 (issue 679), fixed in 2022 by copying the dictionary, and “silently reintroduced” by a refactoring merged on 5 March 2025. The affected upstream range is 2.11.0 to 2.13.0.33 Canonical’s notice USN-9212-1, of 26 November 2026, shipped fixes for Ubuntu 26.04, 24.04 and 22.04, and states that this issue “only affected Ubuntu 22.04 LTS”.34 Ubuntu’s CVE page explains why. The 22.04 package is PyJWT 2.3.0, which has the earlier form of the bug from issue 679, before the 2.4.0 fix. Versions 2.4.0 to 2.10.1 copy the options and are not affected.35 The same notice fixed CVE-2026-102265: a deeply nested header made Python’s JSON parser raise RecursionError, which escaped PyJWT’s documented exception hierarchy. An application that let the exception escape could return an HTTP 500 instead of a clean rejection. That was fixed upstream in 2.14.0.3634
Neither PyJWT flaw is in the cryptography. One is caller-supplied mutable state changed by the library, the other an exception the caller was never told to expect, and the first shows that a fixed bug can return through an unrelated refactoring.
HashiCorp cap: validating one claim and returning another
HashiCorp bulletin HCSEC-2026-60, of 13 November 2026, concerns the cap/jwt Go library, whose downstream users include Vault and Boundary (CVE-2026-19194). Versions up to 0.13.0 “could interpret registered claims differently during validation and when returning them to the application”. An application could therefore make “authorization decisions using claim values different from those validated”.37 The bulletin’s title attributes this to “non-canonical claim names”. The bypass affects the configured expected-issuer and expected-subject checks, so applications that do not set Expected.Issuer or Expected.Subject are not affected by the bypass of those checks. Exploitation “requires attacker-controlled claims in a JWT signed by a key trusted by the application”. The bulletin gives a compromised or misconfigured trusted identity provider as an example of how that could arise. HashiCorp states that no unauthorised access was demonstrated in Vault, Boundary or other downstream applications. The fix is cap 0.14.0.37
The bulletin does not publish the exact name forms involved. The cap v0.14.0 release notes, of 16 September 2026, list a change to “guard against homoglyph keys during claims (un)marshaling”, which points to look-alike characters in claim names.38 The mechanism belongs with the parser differentials below. The library validated one reading of the claims and handed the application another, and the signature covered both.
Audience and type confusion in practice
Audience confusion needs no library bug. Suppose a resource server accepts the issuer’s key and algorithm and checks only signature and expiry. It will then accept any token that issuer has signed with that key for any client or API. OWASP describes the common case: “a token minted for a low-privilege service is replayed against an internal API”.6 The defences are profile rules. Require aud and check that it contains this recipient’s identifier. Require iss and bind the key set to it. Distinguish token kinds. RFC 9068 and OIDC both make the audience check mandatory for their tokens.87 Our article on API authorisation flaws covers the next step. A correctly validated token establishes the subject the issuer vouched for. Unless the token is sender-constrained, the presenter may be someone else, and neither fact says which objects the subject may touch.
Two parsers, one token
Duplicate and non-canonical names
The JSON standard says the names within an object “SHOULD be unique”, and that when they are not, “the behavior of software that receives such an object is unpredictable”.39 Bishop Fox’s 2021 survey of JSON parsers by Jake Miller found the predictable split: Python’s standard library keeps the last occurrence of a duplicate key, while the Go library buger/jsonparser keeps the first.40 For JWTs the rule is stricter. Claim names “MUST be unique”, and parsers “MUST either reject JWTs with duplicate Claim Names or use a JSON parser that returns only the lexically last duplicate member name”. RFC 7515 sets the same rule for header parameters.12 The second option is safe only if every component that reads the token uses the same last-wins rule. A gateway that validates with one parser and a backend that authorises with another can disagree about sub or aud while both accept the signature. Duplicate keys are not the only source of disagreement. Bishop Fox also documents differences from character truncation, comments and number handling.40 RFC 8725 adds encoding: older JSON allowed UTF-16 and UTF-32, and the BCP requires UTF-8 throughout to avoid misinterpretation.15 The cap advisory shows that such disagreement can occur inside a single library, between its validation path and the map it returns.37
Compact versus JSON serialization
In September 2022 python-jwt disclosed CVE-2022-39227, found by Tom Tervoort. An attacker holding one valid token could forge new claims that verify_jwt would accept. The cause was “an inconsistency between the JWT parsers used by python-jwt and its dependency jwcrypto. By mixing compact and JSON representations”, an attacker could make the claims returned differ from those whose signature was checked. The fix was version 3.3.4.41 The successor to RFC 8725 now names this “JWT Format Confusion”. It requires implementations to confirm a JWT is in legal compact form: only letters, digits, dash, underscore and period. Content with “braces and quotation marks” is “not a JWT and MUST be rejected”.11 The character test is necessary, not sufficient. A token that passes it must still have the right number of segments and pass every structural and cryptographic check.
Signed versus encrypted
JWE supports public-key key management, such as RSA-OAEP and ECDH-ES, as well as symmetric key wrapping and direct encryption with a shared key.5 With public-key key management, anyone who holds the recipient’s public key can produce a JWE that decrypts, so successful decryption proves nothing about who wrote the claims. OWASP: “never make authorization decisions on claims from an unsigned JWE.”6 A profile that requires a signature must check for the expected signed content, alone or inside the JWE. RFC 7516 notes that the methods for telling a JWS from a JWE “may yield different results for malformed inputs”.3 The Ruby json-jwt gem shows the risk. CVE-2023-51774 describes version 1.16.3 as sometimes allowing “bypass of identity checks via a sign/encryption confusion attack”, where “JWE can sometimes be used to bypass JSON::JWT.decode”.42 On 1 December 2026 Canonical published USN-9339-1, which fixed older json-jwt flaws for Ubuntu 18.04. One was a failure to verify the AES-GCM authentication tag, which allowed encrypted tokens to be forged (CVE-2018-1000539). The other was a missing segment-count check that allowed malformed JWEs to be accepted (CVE-2019-18848).43 The successor draft to RFC 8725 now requires libraries to let the recipient distinguish unsecured, signed, encrypted and nested JWTs. It notes that “authentication use cases typically require the use of signed JWTs”.11
The key in the config file
Hard-coded keys as a vulnerability class
The checks above assume that the signing private key, or the shared MAC secret, is known only to those meant to hold it. MITRE’s CWE-321, “Use of Hard-coded Cryptographic Key”, and CWE-798, “Use of Hard-coded Credentials”, name the weakness when it is not.4445 Whoever reads such a key from source code, a published image or a default configuration file can mint tokens with whatever claims the relying party accepts from that signer, and token validation will not tell them apart from real ones. Only authorisation checks that do not depend on the token’s claims still limit the impact.
A keyword query of NVD for “hard-coded JWT” on 1 December 2026 returned 71 records, from which the examples below are drawn.46 The query was a way to find cases. It has no denominator and is not a measure of how often the weakness is reported. The examples show a few recurring shapes.
- Default configuration. Kiali before 1.15.1 shipped a hard-coded key “in the default configuration file”, which allowed forged tokens and possibly changes to Istio configuration (CVE-2020-1764).47
- Fallback when unset. Open5GS’s WebUI uses the key
change-me“whenever the environment variable JWT_SECRET_KEY is unset” (CVE-2026-0622, published 20 January 2026).48 Flowise before 3.1.0, in its enterprise passport authentication middleware, fell back to publicly known default secrets, and to default audience and issuer values ofAUDIENCEandISSUER, when environment variables were missing (CVE-2026-56271).49 Several other 2026 records in the same NVD search describe the same fallback shape.46 - Upgrade that keeps the old key. Apache OFBiz’s CVE-2026-105330, published 5 November 2026, affects 24.09.06 and 24.09.07. An earlier fix had removed the factory-default
security.token.keyfrom newly generated configurations. Deployments that upgraded from an older release while keeping their existingsecurity.properties, with internal SSO enabled, still used the default key. NVD notes that “Upgrading alone does not replace an already-configured key”.50 - Commercial products. Veeam Recovery Orchestrator had a “Hard-coded JWT secret” that allowed authentication bypass (CVE-2024-29855).51
The fallback pattern hides from configuration review: the code supplies a development default, the variable is set in some environments and missing in others, and the application starts either way. The safer behaviour is to refuse to start unless the secret comes from an approved source and has enough entropy. A length check alone cannot tell a random key from a long default string. The same reasoning applies to other long-lived secrets, which our article on standing cloud credentials follows in cloud environments.
Weak HMAC secrets and offline guessing
An HS256 secret that is not hard-coded may still be guessable. RFC 8725 notes that tokens signed with “a weak symmetric key with insufficient entropy (such as a human-memorable password)” are open to “offline brute-force or dictionary attacks once an attacker gets hold of such a token”. It requires that “human-memorizable passwords MUST NOT be directly used as the key” for HS256 and similar algorithms.15 RFC 7518 requires an HMAC key at least as long as the hash output, 256 bits for HS256.5 The attack needs only one token and no further contact with the server. Hashcat has a dedicated mode, 16500, for JWTs.52 PortSwigger notes that because the work is local “this process is extremely quick, even when using a huge wordlist”, and that developers sometimes leave placeholder secrets copied from examples.12 Crypt::JWT 0.038 added a minimum HMAC key length with a default of 4 bytes.53 That is far below the 256-bit key RFC 7518 requires for HS256, so the library floor does not meet the standard’s requirement, and a deployment still has to generate a random key of full length.
A token that cannot be withdrawn
A self-contained token whose signature and claims check out stays acceptable until it expires. The issuer cannot recall it unless the verifier consults some revocation state. OWASP’s cheat sheet says that using JWTs for sessions requires a way to invalidate them, typically a deny list. Once that exists, “user sessions won’t be completely stateless anymore which might defeat the benefits of stateless sessions”. It suggests considering “a plain session system” instead.6
The available tools each move some state back. Short lifetimes bound the exposure. Revoking a refresh token stops renewal. RFC 7009 says that if the authorization server supports revoking access tokens, it SHOULD also invalidate the access tokens based on the same grant.54 A verifier that checks JWTs locally and receives no revocation information will still accept those tokens until they expire, as long as it trusts the signing key and the claims pass. OAuth token introspection (RFC 7662, October 2015) lets a resource server ask the authorisation server whether a token “is currently active (or if it has expired or otherwise been revoked)”.55 That is a network call, which a JWT access token was meant to avoid. RFC 7662 allows the resource server to cache responses, and warns that this creates “a window during which a revoked token could be used”.55 Deny lists keyed by jti and iss let a verifier refuse specific tokens before they expire. OWASP warns against keying the list on the raw token or its hash, because JWT malleability, including ECDSA signature malleability, can produce a different encoding that still verifies.6 The IETF’s Token Status List draft takes a scalable approach to issuer revocation: the token carries a URI and index into a compressed status list the verifier can fetch. As of 1 December 2026 it was in the RFC Editor queue, not yet published.656
None of these is free, and the acceptable revocation delay depends on what a token authorises. A policy should state that delay for each kind of token. Where access must end at the next request, the verifier has to consult current state on every request without caching.
Stolen tokens and sender constraint
Unless it is sender-constrained, an access token is used as a bearer credential: the resource server treats whoever presents it as entitled to use it. How such tokens are stolen is covered in our article on stolen sessions and the limits of multifactor authentication. Two OAuth mechanisms bind a token to a key the client holds, whatever the access token’s format. RFC 8705 (February 2020) binds access tokens to the client’s mutual-TLS certificate, so that a protected resource can check that the token was “issued to the client presenting the token”.57 RFC 9449, DPoP (September 2023), does the same at the application layer, which “allows for the detection of replay attacks with access and refresh tokens”. The client signs a proof with a private key for each request. The standardised ways for the resource server to learn the bound key are a thumbprint in the access token itself or the introspection response. RFC 9449 also allows other methods agreed between the authorization server and the resource server. Whatever the method, the resource server MUST check that the key in the proof matches the bound key.58 OWASP notes the limit: sender-constrained tokens restrict use of a stolen token without the key, but “do not prevent token disclosure”.6 Token authenticity and proof of possession are separate checks. The resource server must still validate the access token as described in this article, and must separately validate the proof against the bound key. Token exchange and DPoP for delegated agents are covered in our article on identity and delegation for AI agents.
What RFC 8725 asks, and what its successor adds
RFC 8725, item by item
RFC 8725, “JSON Web Token Best Current Practices”, was published in February 2020 as BCP 225 and updates RFC 7519.15 Its section 3 contains twelve practices, each linked to threats in section 2.
| Section | Practice | What it requires |
|---|---|---|
| 3.1 | Perform algorithm verification | Libraries “MUST enable the caller to specify a supported set of algorithms” and use no other; “each key MUST be used with exactly one algorithm”, checked at the time of use |
| 3.2 | Use appropriate algorithms | Applications MUST allow only current algorithms; none only when the JWT is protected by other means, and libraries SHOULD NOT generate or consume it unless the caller asks; applications SHOULD prefer RSAES-OAEP to RSA PKCS#1 v1.5 encryption; libraries SHOULD use deterministic ECDSA |
| 3.3 | Validate all cryptographic operations | Reject the whole JWT if any operation fails, including both layers of a nested JWT |
| 3.4 | Validate cryptographic inputs | Check elliptic-curve points in ECDH-ES (invalid-curve attacks) |
| 3.5 | Ensure keys have sufficient entropy | No human-memorable passwords as HMAC keys |
| 3.6 | Avoid compression of encryption inputs | Compression leaks plaintext through ciphertext length |
| 3.7 | Use UTF-8 | No other Unicode encodings for headers or claims |
| 3.8 | Validate issuer and subject | Keys must belong to the issuer named in iss; sub must correspond to a valid subject and/or issuer-subject pair |
| 3.9 | Use and validate audience | Where an issuer serves several relying parties, aud must be present and must name the recipient |
| 3.10 | Do not trust received claims | Applications should validate or sanitise kid; they SHOULD protect against SSRF through jku and x5u, for example with an allowlist |
| 3.11 | Use explicit typing | A typ value such as secevent+jwt distinguishes kinds of JWT |
| 3.12 | Mutually exclusive validation rules | If one issuer issues several kinds of JWT, each kind’s rules must reject the others, using types, claims, keys, audiences or issuers |
Source: RFC 8725, sections 2 and 3.15
Explicit typing in section 3.11 is the practice aimed most directly at cross-JWT confusion. The idea is that every kind of JWT carries a distinct typ, such as at+jwt for OAuth access tokens under RFC 9068. A verifier then refuses any token whose type it does not expect, whatever its claims.158 RFC 8725 admits a limit: the validation rules for existing kinds of JWT often do not use the typ header, so typing cannot be retrofitted onto them by verifiers alone.15
The successor draft
The OAuth working group’s draft-ietf-oauth-rfc8725bis would obsolete RFC 8725. Version 10 is dated 21 August 2026. On 1 December 2026 the IETF datatracker showed it submitted to the IESG for publication, in the RFC Editor queue and “Awaiting Editor Assignment”. It was not yet an RFC.59 Its Appendix A lists eight changes. Some are requirements (MUST) and some recommendations (RECOMMENDED or SHOULD), as marked below.11
- Defensive algorithm checking. Libraries should use allowlists rather than blocklists for
alg, because of the case-insensitivenoNEbypass. The library MUST also verify that the algorithm is “consistent with the algorithm associated with the key identified by”kid. - Encryption-signature confusion. Libraries MUST let the recipient tell unsecured, signed, encrypted and nested JWTs apart. The draft cites CVE-2023-51774.
- PBES2 iteration limits. A reasonable upper limit is RECOMMENDED. As an example, the draft cites OWASP’s figure of 600,000 iterations for HMAC-SHA-256 in a FIPS-140 context and recommends rejecting counts above twice that, unless the recipient’s own threat analysis supports a larger number.
- JWT format confusion. Anything that is not a legal compact serialization MUST be rejected.
- Decompression limits. A cap on inflated JWE plaintext is RECOMMENDED. The draft’s example sizes, “on the order of a few hundred kilobytes”, are illustrative.
- Expanded explicit typing. Rules for
typand media type names, including that recipients MUST treat atypwithout a slash as having theapplication/prefix. It states that atypofJWT“does not constitute effective explicit typing”. For existing token kinds it suggests requiring only that atyp, if present, be the expected one. - Untrusted header parameters and SSRF. The
kid,jkuandx5uparameters are to be treated as potentially attacker-controlled,kidsanitisation becomes a “MUST”, and when no allowlist is available the authorization server MUST check what a hostname resolves to and not fetch from a loopback or local IP address. - Deprecating
noneand RSA1_5. The draft normatively references the JOSE working group’s draft deprecatingnoneand the RSA PKCS#1 v1.5 encryption algorithm. It makes application opt-in fornonea “MUST”, and states that the RSA1_5 algorithms are deprecated.11
The bis draft’s reference is to revision 05 of the deprecation draft, draft-ietf-jose-deprecate-none-rsa15 by Neil Madden.11 By 1 December 2026 that draft had reached revision 08 and was also in the RFC Editor queue.60
A review and test list
Each item is a property to confirm on a system one owns or is authorised to test; the RFC 8725 table above gives the rationale for most. Crafted tokens can come from a tool such as Burp Suite’s JWT Editor or the library’s own test fixtures.12
Algorithm handling
- Tokens with
algset tonone, and to case variants such asNoneandNONE, are rejected, with and without an empty signature segment.1112 - For each configured asymmetric key, a token with an HMAC
algsigned using that public key’s bytes is rejected. Test each key encoding the service might hold: PEM SPKI, PKCS#1RSA PUBLIC KEY, OpenSSH and JWK.1716 - The allowed algorithms come from the recipient’s configuration, optionally narrowed by the
algof a key obtained from a trusted source, never from the token. Where a JWKS entry lacksalg, confirm what the library does.22 - For ECDSA keys, a signature with r and s both zero is rejected. More generally, the underlying crypto library passes Wycheproof-style negative vectors.27
Key selection
- A token carrying a
jwkheader with an attacker key is rejected. Where the deployment’s policy is to fetch keys only from an allowlist (a site choice, which the specifications suggest but do not require), a token withjkuorx5upointing elsewhere is rejected and no outbound request is made.156 kidvalues containing path separators, quotes, SQL metacharacters or very long strings are rejected without reaching a filesystem or query. An unknownkidproduces a clean rejection.1215- In multi-issuer deployments, a token whose
issnames issuer A but whosekidselects a key of issuer B is rejected.6 - Key rotation works as specified, and abuse of rotation is bounded. OIDC Core tells verifiers to re-fetch the JWK Set “when it sees an unfamiliar kid value” and issuers to keep retired keys published for a while.7 Check that a new key is picked up, that a removed key stops verifying after the cache period, and that a stream of tokens with random
kidvalues does not trigger a stream of fetches.
Claims
- For each of
iss,aud,exp,nbf,suband any profile claim, test three cases: the correct value, a wrong value and the claim absent. The absent case is the one Crypt::JWT missed for years.29 - A token issued by the same issuer for a different audience or client is rejected (cross-audience replay).156
- Tokens of other kinds from the same issuer are rejected: an ID token presented as an access token, a refresh or reset token presented as a session. Where the profile defines
typ, a wrong or missingtypis rejected; for RFC 9068 access tokens bothat+jwtandapplication/at+jwtare accepted.811 - Expired tokens and not-yet-valid tokens are rejected outside a stated leeway of at most a few minutes.1 Confirm the leeway value in configuration.
- Tokens with duplicate claim or header names are rejected by every component in the path. The specifications’ only alternative is a parser that returns the lexically last duplicate member; components that agree on first-wins handling do not meet it.1240
- If validation options are built once and reused, a verification call made after a signature-skipping call still enforces every claim check.33
Structure and errors
- JSON-serialized JWS, extra segments and non-base64url characters are rejected where a compact JWT is expected.1141
- A JWE is not accepted where a signed JWT is required.42
- Deeply nested headers, oversized tokens, large
p2cvalues and highly compressed JWE payloads cause clean, bounded rejections, not server errors or resource exhaustion.3611 - Error responses do not say which check failed in a way that helps an attacker iterate, and failures are logged with enough detail for defenders.
Secrets and lifecycle
- HMAC secrets are random, at least as long as the hash output, unique per environment and absent from source, images and default configuration.544
- The service refuses to start when its signing secret is unset. A default or fallback value never reaches production.4849
- Upgrades replace factory-default keys and do not carry them forward in retained configuration.50
- Tokens captured during testing should be run against a common-secrets wordlist offline.52 The severity of a recovered secret depends on what tokens under that key can authorise.
- Logout, password change and account disablement have a defined effect on outstanding tokens, and the maximum window is documented.
Design choices that remove failure classes
Bind each key to one algorithm, in configuration
RFC 8725 requires that “each key MUST be used with exactly one algorithm”, and its successor requires that the header’s algorithm be consistent with the key that kid selects.1511 In practice, store alg with every key record, including in published JWK Sets. The verifier should take the algorithm from a key record that came from configuration or an authenticated issuer source, and only within its own allowlist. A JWK’s alg member is optional metadata, so a key without it needs its algorithm set by configuration.4 Do not let symmetric and asymmetric keys share a lookup path. Crypt::JWT’s 2026 release now rejects key sets that mix the two.25
Use maintained libraries, and set every option explicitly
Most of the library flaws above were fixed by upgrading. That argues for maintained libraries and prompt patching, not for writing verification code by hand. It also argues for treating library defaults as unknown. OWASP’s cheat sheet shows a PyJWT call that passes algorithms, issuer and audience explicitly and lists the claims that must be present.6 Expected values and presence rules are separate settings, and both need to be stated. A short wrapper that every service calls, with the algorithms, issuer, audience, required claims and typ fixed per token kind, keeps these decisions in one place where a reviewer can read them.
Prefer asymmetric signatures when more than one party verifies
With HMAC, every verifier holds a key that can also sign. OWASP notes that a different secret is then needed for each issuer and audience pair, because otherwise “one audience can forge a token (impersonating the issuer)”.6 RFC 9068 recommends that authorisation servers sign JWT access tokens with an asymmetric algorithm.8 HMAC remains reasonable when the issuer is the only verifier, as with an application’s own session tokens. Even then, the key must be random and managed as a secret.
Keep validation rules for different token kinds exclusive
When one issuer issues more than one kind of JWT, the validation rules for those kinds MUST be mutually exclusive. Explicit typing, with a specific typ that verifiers check, is one way to achieve this and is recommended for new kinds. Where typ validation is not available, the rules can differ instead in required claims, audiences, issuers or keys, so that no token satisfies two profiles.1511 Using a separate signing key for each token kind is the bluntest version and often the easiest to audit.
Use opaque tokens where revocation or confidentiality matters
When access must end quickly, or the claims are sensitive, a random reference token checked against the issuer (by lookup or RFC 7662 introspection55) removes the format-level failure classes in this article. There is no client-visible signature to confuse and no claims to misparse. A reference token can still be stolen and replayed, must be generated with enough randomness not to be guessed, and is revoked only as fast as the lookup path’s caches allow. OWASP recommends keeping sensitive data “server-side behind an opaque reference token”.6 The cost is a dependency on the issuer at verification time.
Alternatives to JOSE
PASETO (Platform-Agnostic Security Tokens) was designed in reaction to JOSE’s flexibility. Its specification draft contrasts JOSE, which lets users “mix and match their own choice of cryptographic algorithms”, with PASETO’s “clearly defined protocol versions”. It uses “versioned protocols, rather than in-band negotiation”, and defines keys as a tuple of version, purpose and bytes. The draft states that keys “MUST NOT be used for a different version of PASETO, or for a different purpose”. That is a rule for compliant implementations, not a guarantee that raw key material is never reused elsewhere.61 For compliant implementations, that design removes the alg header problem by construction. PASETO has not been standardised: its IETF draft was an individual submission that expired in 2022.61 Adopting it trades JOSE’s interoperability with OAuth and OIDC tooling for a narrower format.
When not to use a JWT
OWASP asks whether JWTs are “really necessary for your use case”.6 For a server-rendered web application with a single backend, a random session identifier in a secure cookie, checked against server-side state on each request, can be revoked by deleting the server-side record, and has no signature logic to get wrong. JWTs earn their complexity when a verifier cannot or should not call the issuer, as with federated identity or offline credentials such as SD-JWT.
Where the evidence is thin
The record above comes from advisories, which show that a flaw existed, not how many deployments had it. None of the sources cited here measures how many deployed verifiers have any of these flaws, so the prevalence of, for example, missing audience checks in production is unknown.
Some advisories leave the mechanism vague. HCSEC-2026-60 describes the effect of the cap flaw, and the release notes point to homoglyph claim names, but neither publishes the exact forms that triggered it.3738 Vendors’ impact statements, such as HashiCorp’s that no unauthorised access was demonstrated in its downstream products, are their own assessments.37
The sources take two design approaches. McLean proposed deprecating the alg header in 2015, and PASETO’s authors built a format without in-band algorithm choice for the same reason.1061 The IETF has instead tightened the rules around agility. RFC 8725 and its successor keep the alg header and push verification policy into libraries and applications, and the deprecation draft withdraws particular algorithm values rather than the mechanism.151160 Under either approach, profile rules (which claims are required, which audiences and issuers are acceptable), token lifecycle and updates to the underlying cryptographic provider remain application or operator decisions; PASETO’s versioning removes only the algorithm choice. The 2026 advisories show that the JOSE approach depends on library defaults being right. No source cited here compares the two in deployment.
Conclusion
A JWT is a set of claims in a signed, MAC-protected, encrypted or unsecured structure, and the format deliberately leaves most security decisions to the verifier. The bypasses recorded from 2015 to 2026 come from a short list of decisions made badly. Verifiers let the token choose its algorithm or supply its own key, or let a library default choose an algorithm the application did not intend. They accepted a valid signature over claims meant for another issuer, audience or purpose, or skipped a check when a claim was absent. Two parsers disagreed about what the token said. Or the signing secret was public all along, in a default file, a fallback value or a configuration carried across an upgrade. Each has a documented mitigation. Bind every key to one algorithm in configuration. Choose keys only from sets bound to an expected issuer. Require and check iss, aud and exp. Where one issuer issues several kinds of token, make their validation rules mutually exclusive, through an explicit type where the profile defines one and through other discriminators where it does not. Where the profile requires a signed token, reject anything that is not a well-formed compact JWS carrying the expected claims. Generate random secrets from an approved source and refuse to start without them. RFC 8725 has covered most of this since 2020, and its successor, now awaiting publication, adds what was learned since. The 2026 advisories against Hono, PyJWT, Crypt::JWT and HashiCorp’s cap show that a maintained library is necessary but not sufficient. Each team still has to state its verification policy explicitly, test it with absent-claim and wrong-audience cases as well as forged ones, and consider whether an opaque token would serve better.
Footnotes
- M. Jones, J. Bradley and N. Sakimura, “JSON Web Token (JWT)”, RFC 7519, IETF, May 2015, sections 1, 4.1, 7.2 and 8. https://www.rfc-editor.org/rfc/rfc7519 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9
- M. Jones, J. Bradley and N. Sakimura, “JSON Web Signature (JWS)”, RFC 7515, IETF, May 2015, sections 4 and 6. https://www.rfc-editor.org/rfc/rfc7515 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
- M. Jones and J. Hildebrand, “JSON Web Encryption (JWE)”, RFC 7516, IETF, May 2015, section 9. https://www.rfc-editor.org/rfc/rfc7516 (opens in a new tab) ↩1 ↩2 ↩3
- M. Jones, “JSON Web Key (JWK)”, RFC 7517, IETF, May 2015, section 4.4. https://www.rfc-editor.org/rfc/rfc7517 (opens in a new tab) ↩1 ↩2 ↩3
- M. Jones, “JSON Web Algorithms (JWA)”, RFC 7518, IETF, May 2015, sections 3.2 and 3.6. https://www.rfc-editor.org/rfc/rfc7518 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
- OWASP Cheat Sheet Series, “JSON Web Token Cheat Sheet”, accessed 1 December 2026. https://cheatsheetseries.owasp.org/cheatsheets/JSON_Web_Token_Cheat_Sheet.html (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15 ↩16
- N. Sakimura et al., “OpenID Connect Core 1.0 incorporating errata set 2”, OpenID Foundation, 15 December 2023, sections 3.1.3.7 and 10.1.1. https://openid.net/specs/openid-connect-core-1_0.html (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- V. Bertocci, “JSON Web Token (JWT) Profile for OAuth 2.0 Access Tokens”, RFC 9068, IETF, October 2021, sections 2.2 and 4. https://www.rfc-editor.org/rfc/rfc9068 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
- D. Fett, K. Yasuda and B. Campbell, “Selective Disclosure for JSON Web Tokens”, RFC 9901, IETF, November 2025. https://www.rfc-editor.org/rfc/rfc9901 (opens in a new tab) ↩
- T. McLean, “Critical vulnerabilities in JSON Web Token libraries”, Auth0 blog, 31 March 2015 (updated 20 April 2015; the page now carries a later date). https://auth0.com/blog/critical-vulnerabilities-in-json-web-token-libraries/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
- Y. Sheffer, D. Hardt and M. Jones, “JSON Web Token Best Current Practices”, draft-ietf-oauth-rfc8725bis-10, IETF Internet-Draft, 21 August 2026, sections 2.3, 2.11, 2.13, 3.1, 3.3, 3.10, 3.11, 3.13 to 3.15 and Appendix A. https://www.ietf.org/archive/id/draft-ietf-oauth-rfc8725bis-10.txt (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15
- PortSwigger, “JWT attacks”, Web Security Academy, accessed 1 December 2026. https://portswigger.net/web-security/jwt (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
- PortSwigger, “Algorithm confusion attacks”, Web Security Academy, accessed 1 December 2026. https://portswigger.net/web-security/jwt/algorithm-confusion (opens in a new tab) ↩
- NIST National Vulnerability Database, “CVE-2015-9235” (node-jsonwebtoken before 4.2.2), published 29 May 2018. https://nvd.nist.gov/vuln/detail/CVE-2015-9235 (opens in a new tab) ↩
- Y. Sheffer, D. Hardt and M. Jones, “JSON Web Token Best Current Practices”, RFC 8725 (BCP 225), IETF, February 2020, sections 2 and 3. https://www.rfc-editor.org/rfc/rfc8725 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15 ↩16 ↩17
- PyJWT, “Key confusion through non-blocklisted public key formats”, GitHub security advisory GHSA-ffqj-6fqr-9h24 (CVE-2022-29217), 24 May 2022. https://github.com/jpadilla/pyjwt/security/advisories/GHSA-ffqj-6fqr-9h24 (opens in a new tab) ↩1 ↩2 ↩3
- NIST National Vulnerability Database, “CVE-2023-48223” (fast-jwt before 3.3.2), published 20 November 2023. https://nvd.nist.gov/vuln/detail/CVE-2023-48223 (opens in a new tab) ↩1 ↩2
- Devansh, “HonoJS JWT/JWKS Algorithm Confusion”, researcher’s blog, 13 January 2026. https://devansh.bearblog.dev/honojs/ (opens in a new tab) ↩1 ↩2 ↩3
- Hono, src/middleware/jwt/jwt.ts at tag v4.11.3, JSDoc for
options.alg. https://raw.githubusercontent.com/honojs/hono/v4.11.3/src/middleware/jwt/jwt.ts (opens in a new tab) ↩ - Hono, “Hono JWT Middleware’s JWT Algorithm Confusion via Unsafe Default (HS256) Allows Token Forgery and Auth Bypass”, GitHub security advisory GHSA-f67f-6cw9-8mq4 (CVE-2026-22817), 13 January 2026. https://github.com/advisories/GHSA-f67f-6cw9-8mq4 (opens in a new tab) ↩
- Hono, commit cc0aa7ae, “fix(utils/jwt): require alg parameter in verify function”, GitHub, 13 January 2026. https://github.com/honojs/hono/commit/cc0aa7ae327ed84cc391d29086dec2a3e44e7a1f (opens in a new tab) ↩
- Hono, “Hono JWK Auth Middleware has JWT algorithm confusion when JWK lacks ‘alg’ (untrusted header.alg fallback)”, GitHub security advisory GHSA-3vhc-576x-3qv4 (CVE-2026-22818), 13 January 2026. https://github.com/advisories/GHSA-3vhc-576x-3qv4 (opens in a new tab) ↩1 ↩2
- NIST National Vulnerability Database, “CVE-2018-0114” (Cisco node-jose before 0.11.0), published 4 January 2018. https://nvd.nist.gov/vuln/detail/CVE-2018-0114 (opens in a new tab) ↩
- J. Choi, “perl Crypt::JWT vulnerability”, oss-security mailing list, 7 September 2018. https://www.openwall.com/lists/oss-security/2018/09/07/1 (opens in a new tab) ↩
- DCIT, “Changes for Crypt-JWT distribution”, perl-Crypt-JWT repository, entries for 0.023 (1 September 2018), 0.024 (26 March 2019), 0.029 (22 June 2020) and 0.038 (16 May 2026). https://raw.githubusercontent.com/DCIT/perl-Crypt-JWT/master/Changes (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- NIST National Vulnerability Database, “CVE-2019-1010263” (Perl Crypt::JWT before 0.023), published 17 July 2019. https://nvd.nist.gov/vuln/detail/CVE-2019-1010263 (opens in a new tab) ↩
- N. Madden, “CVE-2022-21449: Psychic Signatures in Java”, researcher’s blog, 19 April 2022 (with later updates). https://neilmadden.blog/2022/04/19/psychic-signatures-in-java/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- NIST National Vulnerability Database, “CVE-2022-21449” (Oracle Java SE, Libraries), published 19 April 2022. https://nvd.nist.gov/vuln/detail/CVE-2022-21449 (opens in a new tab) ↩
- NIST National Vulnerability Database, “CVE-2018-25445” (Crypt::JWT before 0.024 skips issuer, subject, audience and JWT ID checks), published 25 November 2026. https://nvd.nist.gov/vuln/detail/CVE-2018-25445 (opens in a new tab) ↩1 ↩2
- NIST National Vulnerability Database, “CVE-2026-8748” (Crypt::JWT non-constant-time MAC comparison), versions before 0.037_1, published 25 November 2026. https://nvd.nist.gov/vuln/detail/CVE-2026-8748 (opens in a new tab) ↩
- NIST National Vulnerability Database, “CVE-2026-136795” (Crypt::JWT before 0.037_1, unbounded inflation of zip payloads), published 25 November 2026. https://nvd.nist.gov/vuln/detail/CVE-2026-136795 (opens in a new tab) ↩
- NIST National Vulnerability Database, “CVE-2026-136796” (Crypt::JWT before 0.037_1, unbounded PBES2 iteration count), published 25 November 2026. https://nvd.nist.gov/vuln/detail/CVE-2026-136796 (opens in a new tab) ↩
- PyJWT, “PyJWT.decode() reintroduces options-dict mutation, enabling silent claim-verification bypass on dict reuse”, GitHub security advisory GHSA-gvp8-978c-rx2q (CVE-2026-103001), published 8 September 2026, updated 30 September 2026. https://github.com/jpadilla/pyjwt/security/advisories/GHSA-gvp8-978c-rx2q (opens in a new tab) ↩1 ↩2 ↩3
- Canonical, “USN-9212-1: PyJWT vulnerabilities”, Ubuntu security notice, 26 November 2026. https://ubuntu.com/security/notices/USN-9212-1 (opens in a new tab) ↩1 ↩2
- Canonical, “CVE-2026-103001”, Ubuntu CVE page with package statuses and security team notes, last updated 26 November 2026. https://ubuntu.com/security/CVE-2026-103001 (opens in a new tab) ↩
- NIST National Vulnerability Database, “CVE-2026-102265” (PyJWT RecursionError on deeply nested headers, fixed in 2.14.0), published 28 September 2026. https://nvd.nist.gov/vuln/detail/CVE-2026-102265 (opens in a new tab) ↩1 ↩2
- HashiCorp, “HCSEC-2026-60 - CAP JWT claims validation bypass using non-canonical claim names” (CVE-2026-19194), HashiCorp Discuss security bulletin, 13 November 2026. https://discuss.hashicorp.com/t/hcsec-2026-60-cap-jwt-claims-validation-bypass-using-non-canonical-claim-names/78258 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
- HashiCorp, “v0.14.0”, hashicorp/cap release notes, GitHub, 16 September 2026. https://github.com/hashicorp/cap/releases/tag/v0.14.0 (opens in a new tab) ↩1 ↩2
- T. Bray (ed.), “The JavaScript Object Notation (JSON) Data Interchange Format”, RFC 8259, IETF, December 2017, section 4. https://www.rfc-editor.org/rfc/rfc8259 (opens in a new tab) ↩
- J. Miller, “An Exploration of JSON Interoperability Vulnerabilities”, Bishop Fox, 25 February 2021. https://bishopfox.com/blog/json-interoperability-vulnerabilities (opens in a new tab) ↩1 ↩2 ↩3
- python-jwt, “python-jwt vulnerable to token forgery with new claims”, GitHub security advisory GHSA-5p8v-58qm-c7fp (CVE-2022-39227), 21 September 2022. https://github.com/davedoesdev/python-jwt/security/advisories/GHSA-5p8v-58qm-c7fp (opens in a new tab) ↩1 ↩2
- NIST National Vulnerability Database, “CVE-2023-51774” (Ruby json-jwt 1.16.3 sign/encryption confusion), published 29 February 2024. https://nvd.nist.gov/vuln/detail/CVE-2023-51774 (opens in a new tab) ↩1 ↩2
- Canonical, “USN-9339-1: json-jwt vulnerabilities”, Ubuntu security notice, 1 December 2026. https://ubuntu.com/security/notices/USN-9339-1 (opens in a new tab) ↩
- MITRE, “CWE-321: Use of Hard-coded Cryptographic Key”, Common Weakness Enumeration, version 5.0. https://cwe.mitre.org/data/definitions/321.html (opens in a new tab) ↩1 ↩2
- MITRE, “CWE-798: Use of Hard-coded Credentials”, Common Weakness Enumeration, version 5.0. https://cwe.mitre.org/data/definitions/798.html (opens in a new tab) ↩
- NIST National Vulnerability Database, CVE API keyword search for “hard-coded JWT”, 71 results on 1 December 2026. https://services.nvd.nist.gov/rest/json/cves/2.0?keywordSearch=hard-coded%20JWT (opens in a new tab) ↩1 ↩2
- NIST National Vulnerability Database, “CVE-2020-1764” (Kiali before 1.15.1), published 26 March 2020. https://nvd.nist.gov/vuln/detail/CVE-2020-1764 (opens in a new tab) ↩
- NIST National Vulnerability Database, “CVE-2026-0622” (Open5GS WebUI), published 20 January 2026. https://nvd.nist.gov/vuln/detail/CVE-2026-0622 (opens in a new tab) ↩1 ↩2
- NIST National Vulnerability Database, “CVE-2026-56271” (Flowise before 3.1.0), published 12 July 2026. https://nvd.nist.gov/vuln/detail/CVE-2026-56271 (opens in a new tab) ↩1 ↩2
- NIST National Vulnerability Database, “CVE-2026-105330” (Apache OFBiz 24.09.06 and 24.09.07), published 5 November 2026. https://nvd.nist.gov/vuln/detail/CVE-2026-105330 (opens in a new tab) ↩1 ↩2
- NIST National Vulnerability Database, “CVE-2024-29855” (Veeam Recovery Orchestrator), published 11 June 2024. https://nvd.nist.gov/vuln/detail/CVE-2024-29855 (opens in a new tab) ↩
- hashcat, “Example hashes”, hashcat wiki, mode 16500 “JWT (JSON Web Token)”, accessed 1 December 2026. https://hashcat.net/wiki/doku.php?id=example_hashes (opens in a new tab) ↩1 ↩2
- DCIT, Crypt-JWT 0.038 release on CPAN, lib/Crypt/JWT.pm,
$VERSION = '0.038'and$MIN_HMAC_KEY_LEN = 4(minimum HMAC key length in bytes). https://cpan.metacpan.org/authors/id/M/MI/MIK/Crypt-JWT-0.038.tar.gz (opens in a new tab) ↩ - T. Lodderstedt (ed.), S. Dronia and M. Scurtescu, “OAuth 2.0 Token Revocation”, RFC 7009, IETF, August 2013, section 2.1. https://www.rfc-editor.org/rfc/rfc7009 (opens in a new tab) ↩
- J. Richer (ed.), “OAuth 2.0 Token Introspection”, RFC 7662, IETF, October 2015, section 1. https://www.rfc-editor.org/rfc/rfc7662 (opens in a new tab) ↩1 ↩2 ↩3
- IETF Datatracker, “Token Status List”, draft-ietf-oauth-status-list-21, status page, accessed 1 December 2026. https://datatracker.ietf.org/doc/draft-ietf-oauth-status-list/ (opens in a new tab) ↩
- B. Campbell, J. Bradley, N. Sakimura and T. Lodderstedt, “OAuth 2.0 Mutual-TLS Client Authentication and Certificate-Bound Access Tokens”, RFC 8705, IETF, February 2020. https://www.rfc-editor.org/rfc/rfc8705 (opens in a new tab) ↩
- D. Fett et al., “OAuth 2.0 Demonstrating Proof of Possession (DPoP)”, RFC 9449, IETF, September 2023. https://www.rfc-editor.org/rfc/rfc9449 (opens in a new tab) ↩
- IETF Datatracker, “JSON Web Token Best Current Practices, draft-ietf-oauth-rfc8725bis”, document status page, accessed 1 December 2026. https://datatracker.ietf.org/doc/draft-ietf-oauth-rfc8725bis/ (opens in a new tab) ↩
- IETF Datatracker, “JOSE: Deprecate ‘none’ and ‘RSA1_5’”, draft-ietf-jose-deprecate-none-rsa15-08 (N. Madden), status page, accessed 1 December 2026. https://datatracker.ietf.org/doc/draft-ietf-jose-deprecate-none-rsa15/ (opens in a new tab) ↩1 ↩2
- R. Terjesen, S. Haussmann and S. Arciszewski, “PASETO (Platform-Agnostic SEcurity TOkens)”, draft-paragon-paseto-rfc-01, expired individual Internet-Draft, 24 May 2022, sections 1.1 and 8. https://datatracker.ietf.org/doc/draft-paragon-paseto-rfc/ (opens in a new tab) ↩1 ↩2 ↩3

SecSIG