Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Cybersecurity glossary

JSON Web Token (JWT)

A JSON Web Token is a signed piece of JSON that carries claims, such as who a user is and when the token expires, which a service can check without a database lookup.

It has three parts: a header, the claims and a signature. The claims are only encoded, not encrypted, so anybody holding the token can read them.

Most JWT attacks are about checks left out: accepting the algorithm "none", letting the token choose its own key, or skipping the expiry and audience. A safe service fixes the algorithm and key, and checks every claim.

Learn it hands-on

These free lessons teach it with commands to run in a lab of your own and checked tasks. Read them whole with no account.

← All cybersecurity terms