Skip to content
ShankarStack
HighJWT

JWT Misconfiguration

Improper validation of JSON Web Tokens undermines the integrity guarantees they are meant to provide.

Common issues include accepting unverified signatures, algorithm confusion and missing claim validation.

Root cause

Tokens are trusted without full, correct signature and claim verification.

Impact

Forged or tampered tokens could be accepted, undermining authentication or authorization.

Detection methodology

Review token verification code for strict algorithm pinning and complete claim checks.

Remediation

Pin expected algorithms, verify signatures with correct keys, validate all security-relevant claims, and keep lifetimes short.

Secure coding guidance

Use a vetted library with explicit algorithm allow-lists; validate iss, aud, exp and nbf.