Skip to content
OpenAdvisories
Unscored CVE-2018-25445 EUVD-2018-21967

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

Published Nov 25, 2026 · Assigned by CPANSec

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.

Affected products

VendorProductAffectedFixed
— Crypt-JWT < 0.024 0.024

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libcrypt-jwt-perl 0.024-1 —
Debian 13 libcrypt-jwt-perl 0.024-1 —
Debian 12 libcrypt-jwt-perl 0.024-1 —

References