Skip to content

LS-JWT-001: JWT Token

Severity MEDIUM
Blast radius Session/identity impersonation until expiry
Rotate at https://vasishta03.github.io/leakscan/rules/
Validation jwt_ok (matches that fail are dropped)

If this leaks

JWTs encode claims (often including user ID, role, and expiry) that a receiving service trusts; an attacker can replay it to impersonate the subject until it expires.

What to do

  1. Rotate or revoke the credential at https://vasishta03.github.io/leakscan/rules/.
  2. Check the provider's audit logs for use you don't recognise.
  3. Remove it from git history (leakscan purge --help) and load it from an environment variable or secret manager instead.

Pattern

eyJ[a-zA-Z0-9\-_]+\.eyJ[a-zA-Z0-9\-_]+\.[a-zA-Z0-9\-_]+

Suppress

On one line: # leakscan:ignore LS-JWT-001. For the whole project:

disable_rules: [LS-JWT-001]