CVE-2026-13089 Details
Description
OIDC::Lite versions through 0.12.1 for Perl allow ID Token signature verification bypass via a token-controlled algorithm allowlist in verify. When the caller does not pin an algorithm, OIDC::Lite::Model::IDToken::verify sets $self->alg($self->header->{alg}) from the token's own header and then calls decode_jwt(token, key, 1, [$self->alg]), handing JSON::WebToken an accepted-algorithm allowlist taken from the untrusted token. A token with alg=none yields ['none'], so decode_jwt returns the claims with no signature check, and a token with alg=HS256 is verified with the RP's RSA public key as the HMAC secret (RS to HS confusion). The ID Token is the OpenID Connect authentication assertion delivered to the Relying Party. Any caller that verifies an ID Token through the unpinned load(token)->verify path, or load(token, key) with only the key pinned, accepts a forged token carrying attacker-chosen claims such as sub and is authenticated as any user. Passing an explicit algorithm so $self->alg is already set bypasses the header-derived allowlist and is not affected. Note that the latest version uploaded to CPAN is 0.10. Later versions are available in the git repository.
A vulnerability in OIDC::Lite for Perl, affecting versions through 0.12.1, allows bypassing ID Token signature verification. This is achieved through a token-controlled algorithm allowlist in the verification process. When the algorithm is not explicitly pinned, the library accepts algorithms from the token's header, including 'none' and 'HS256', leading to improper verification. Tokens with 'alg=none' are accepted without any signature check, while those with 'alg=HS256' are verified using the Relying Party's RSA public key as the HMAC secret, creating a confusion between RSA and HMAC algorithms. This vulnerability can be exploited by accepting forged tokens with attacker-chosen claims, effectively authenticating as any user.
Users are advised to pin the expected signature algorithm when verifying ID Tokens. This can be done by using the OIDC::Lite::Model::IDToken->load($token, $key, $alg) method, specifying a non-none algorithm, to ensure that the verification process uses the pinned algorithm instead of one derived from the token header.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 22, 2026CISA-ADP
Assessed Jul 27, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://datatracker.ietf.org/doc/html/rfc8725#section-3.1 | CPANSec | Content Wall |
| https://github.com/ritou/p5-oidc-lite/pull/31 | CPANSec | Issue TrackingVendor |
| https://security.metacpan.org/patches/O/OIDC-Lite/0.10/CVE-2026-13089-r1.patch | CPANSec | Broken LinkSource CodeVendor |
| http://www.openwall.com/lists/oss-security/2026/07/22/17 | CVE | AdvisoryMailing ListRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-347 | Improper Verification of Cryptographic Signature | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| OIDC::Lite | <= 0.12.1 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 24, 2026 | CVE Translated | [email protected] |
| Jul 27, 2026 | CVE Modified | CISA-ADP |
| Jul 22, 2026 | CVE Modified | CVE |
| Jul 22, 2026 | New CVE Received | CPANSec |
Volerion