Security Advisories (1)
CVE-2026-9537 (2026-07-17)

Mojo::JWT versions before 1.02 for Perl verify HMAC signatures with a non-constant-time string comparison. The decode() method compares the supplied signature to the recomputed HMAC with Perl's eq operator, which stops at the first differing byte, so the comparison time varies with the number of matching leading bytes. A caller that decodes attacker supplied tokens leaks the expected signature through this timing variation, which can be aggregated over many requests to recover the signature and forge a token.

Changes for version 1.00 - 2024-10-15

  • Use CryptX (libtomcrypt) for all cryptographic functions
  • Crypt::OpenSSL input is still accepted but converted in-use

Modules

JSON Web Token the Mojo way