CVE-2018-25445: Crypt::JWT versions before 0.024 for Perl skip issuer, subject, audience and JWT ID checks when the claim is absent or the option is a plain string
Robert Rothenberg 25 Nov 2026 22:28 UTC
========================================================================
CVE-2018-25445 CPAN Security Group
========================================================================
CVE ID: CVE-2018-25445
Distribution: Crypt-JWT
Versions: before 0.024
MetaCPAN: https://metacpan.org/dist/Crypt-JWT
VCS Repo: https://github.com/DCIT/perl-Crypt-JWT
Crypt::JWT versions before 0.024 for Perl skip issuer, subject,
audience and JWT ID checks when the claim is absent or the option is a
plain string
Description
-----------
Crypt::JWT versions before 0.024 for Perl skip issuer, subject,
audience and JWT ID checks when the claim is absent or the option is a
plain string.
decode_jwt runs the verify_iss, verify_sub, verify_aud and verify_jti
checks only when the token carries the claim, and honours an option
only as a Regexp or CODE reference. Any other value, such as verify_aud
=> 'myapp', is ignored.
An application that relies on these checks accepts a validly signed
token meant for a different issuer, subject or audience.
Problem types
-------------
- CWE-636 Not Failing Securely
Solutions
---------
Upgrade to Crypt-JWT 0.024 or later.
References
----------
https://github.com/DCIT/perl-Crypt-JWT/commit/b0578979b012fd5ce57be2038a3cda1b3e65ae97.patch
https://metacpan.org/release/MIK/Crypt-JWT-0.024/changes