JWT None Algorithm Attack

Cybersecurity Glossary Authentication & Access Control

JWT None Algorithm Attack

An attack exploiting JWT libraries that accept tokens with "alg": "none", allowing unsigned tokens to be treated as valid.

JWT None Algorithm Attack exploits JWT implementations that accept tokens with the algorithm set to "none". This unsecured JWT type was intended for cases where integrity is guaranteed by other means, but vulnerable libraries accept it without verification.

Prevention

  • Explicitly reject "none" algorithm in verification
  • Whitelist allowed algorithms
  • Use updated JWT libraries (most now reject "none")
  • Always require signature verification

See Also