JWT None Algorithm
Acceptance of an unsecured JWS (
"alg":"none", empty signature) or of any token whose signature check is skipped, so claims are trusted without cryptographic verification.
How it works
RFC 7518 defines none for Unsecured JWS: the signature MUST be the empty octet sequence, and implementations MUST NOT accept Unsecured JWSs by default. RFC 7519 even listed none (alongside HS256) as mandatory to implement. The failure is that a prose rule is not a default: a library that reads alg from the token and dispatches on it has already let the attacker pick “no verification”.
An unsecured token still keeps the trailing dot: <header>.<payload>.
The same outcome (claims accepted without a valid signature) has several distinct root causes, and testing should treat them as one family:
| Root cause | Shape |
|---|---|
Library honours none | Header-driven dispatch; CVE-2015-9235 (node-jsonwebtoken < 4.2.2) |
| Case/encoding variants slip a string filter | None, NONE, nOnE; filters that compare literally |
Unknown alg returns empty signature | HarbourJwt CVE-2026-23993: any value outside HS256/384/512 makes GetSignature() return "", which equals an empty token signature |
Zero-length signature with real alg | Null signature, CVE-2020-28042: alg stays HS256, signature segment empty, library skips the compare |
decode() used instead of verify() | jsonwebtoken decode() parses without verifying; app trusts the output |
| Plain JWT inside JWE | pac4j-jwt CVE-2026-29000: decrypted inner token parsed as SignedJWT; a PlainJWT yields null and the verify branch is skipped |
| No verification at all | Server trusts unverified claims (Newspack, XBEN-027) |
App-supplied allow-list includes none | Parse Server CVE-2026-27804 passed header alg into algorithms |
Notable cases
- CIRCUTOR PowerStudio SCADA WAVE (CVE-2026-120387, CVSS 4.0 10.0): the shared JWT validation component accepts
alg=none; unauthenticated identity forgery, chained to RCE in the original research. Affected 24.8.0 to < 24.11.17.0; CISA ADP marks it automatable, PoC public. - Cudy TR3000 / AX3000 (CVE-2026-75491):
auth_plugin_jwt.soon the MQTT broker (8883) acceptedalg nonecombined with a trusted client certificate, authenticating asadmincudydeviceand reaching rootbatchcmdexecution. Fixed in firmware 2.5.42. - pac4j-jwt (CVE-2026-29000, max severity): with RSA JWE plus both
EncryptionConfigurationandSignatureConfiguration, an attacker who has only the server’s RSA public key encrypts an unsigned inner JWT andJwtAuthenticatorbuilds a profile from unverified claims. Fixed 4.5.9 / 5.7.9 / 6.3.3. Encryption to a public key provides no authenticity; the inner signature is the only integrity control. - HarbourJwt (CVE-2026-23993): found by LLM-assisted triage of jwt.io-listed libraries, then manual review; any unknown
algplus empty signature passes. - Newspack Extended Access (H1 #2472798): registration/login endpoint never validated the JWT signature; an unsigned token with a victim’s
emailclaim authenticated as that user. - jsonwebtoken 0.4.0: CTF reproduction of the early Node library honouring
nonefor user-to-admin escalation. - Intigriti November CTF:
nonegave admin, which exposed an SSTI sink and RCE; typical of how unsigned-token acceptance is a first link rather than the end. - Practitioner checklist (robinx0):
noneaccepted by older jsonwebtoken, python-jwt and several Go libraries; modern libraries reopen it with one line (options={'verify_signature': False}). A different error for a tampered signature than for a tamperedalgreveals a logic split worth probing (robinx0).
Detection and testing
- Baseline: replay the token, then remove it, then truncate the signature. If a truncated signature is still accepted, signature checking is absent and payload tampering is enough (jwt_tool “Is it checked?”).
- Then try, separately:
alg=noneand case variants with an empty signature; the originalalgwith an empty signature segment; an unrecognisedalgvalue with an empty signature. - For JWE deployments, check whether the decrypted inner token must be a JWS and whether the verifier fails closed when it is not.
- Code review: grep for
decode(used for authentication,verify=False/options={"verify_signature": False},algorithmsbuilt from the header, and verify functions whose unsupported-algorithm path returns an empty value instead of an error. - Tooling: jwt_tool playbook mode, Burp JWT Editor (“none” attack), JWT Scanner, jwt-hack, jwt-auditor.
Defenses
- Pass an explicit asymmetric or HMAC allow-list from configuration; never include
none, never derive it from the token (RFC 8725 §3.1). - Unknown/unsupported algorithm must raise, not return an empty signature; compare signatures in constant time and reject zero-length signatures.
- Use the library’s verify API, not decode, for any token that drives authentication; keep decode for logging only.
- For nested JWE, require a signed inner JWT and verify it with a pinned key.
- Add regression tests for
none, unknown alg, and empty signature to the auth suite.
Related
- JSON Web Tokens
- JWT Algorithm Confusion
- JWT Empty Key Forgery
- JWT Header Injection
- Python JWT Library Vulnerabilities
Sources
- The JWT algorithm that verified nothing (alg:none) · original
- PortSwigger KB: JWT none algorithm supported · original
- JWT attacks (PortSwigger Web Security Academy) · original
- Known Exploits and Attacks (jwt_tool Wiki) · original
- jwt_tool Attack Methodology wiki · original
- CVE-2026-23993: JWT Authentication Bypass in HarbourJwt via Unknown alg · original
- CVE-2026-120387: PowerStudio SCADA JWT signature validation bypass · original
- CIRCUTOR PowerStudio: JWT alg=none identity forgery · original
- Cudy MQTT JWT auth bypass (alg none) to root command execution · original
- CVE-2026-29000: Authentication Bypass in pac4j-jwt · original
- Proof of Concept for CVE-2026-29000 (pac4j-jwt) · original
- HackerOne #2472798: Newspack Extended Access JWT bypass · original
- ctf-jwt-token: Vulnerability in early JWT node.js library · original
- November CTF Challenge: Exploiting JWT vulnerabilities to achieve RCE · original
- A JWT the server never verified (XBEN-027) · original
- JWT Algorithm Confusion Attacks: CVE-2026-22817 Fix Guide · original
- JWT algorithm confusion: none, HS256/RS256 mix-ups, and kid injection · original