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

Published Nov 25, 2026
·
Updated

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.

decodejwt runs the verifyiss, verifysub, verifyaud and verifyjti checks only when the token carries the claim, and honours an option only as a Regexp or CODE reference. Any other value, such as verifyaud => 'myapp', is ignored.

An application that relies on these checks accepts a validly signed token meant for a different issuer, subject or audience.

Affected Software

1 affected component
cpan/Crypt-JWT<0.024

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 0.024

Event History

Nov 25, 2026
CVE Published
via MITRE·10:27 PM
Data Sourced
via MITRE·10:27 PM
RemedyDescriptionWeakness
Data Sourced
via NVD·11:17 PM
DescriptionWeakness

Frequently Asked Questions

1

Which applications are exposed to token confusion or cross-issuer acceptance?

Applications using Crypt::JWT before 0.024 are exposed if they rely on decode_jwt to enforce issuer, subject, audience, or JWT ID restrictions. The risk is especially relevant where tokens from multiple issuers, audiences, or application contexts can be presented to the same verifier.

2

What must an attacker have for exploitation?

An attacker needs a validly signed JWT that the application will otherwise accept cryptographically, but that was issued for a different issuer, subject, audience, or token context. The bypass concerns claim validation rather than signature verification.

3

Are string-based verification settings effective in affected versions?

No. In affected versions, options such as verify_aud => 'myapp' are ignored because the option is honored only when supplied as a Regexp or CODE reference.

4

How can I determine whether my application is affected?

Check whether it uses Crypt::JWT before 0.024 and passes plain strings to verify_iss, verify_sub, verify_aud, or verify_jti. It is also affected when it expects these checks to reject tokens with missing corresponding claims, because decode_jwt performs the checks only when the token includes the claim.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203