{"id":"CVE-2026-13089","summary":"OIDC::Lite versions through 0.12.1 for Perl allow ID Token signature verification bypass via a token-controlled algorithm allowlist in verify","details":"OIDC::Lite versions through 0.12.1 for Perl allow ID Token signature verification bypass via a token-controlled algorithm allowlist in verify.\n\nWhen the caller does not pin an algorithm, OIDC::Lite::Model::IDToken::verify sets $self-\u003ealg($self-\u003eheader-\u003e{alg}) from the token's own header and then calls decode_jwt(token, key, 1, [$self-\u003ealg]), 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).\n\nThe 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)-\u003everify 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-\u003ealg is already set bypasses the header-derived allowlist and is not affected.\n\nNote that the latest version uploaded to CPAN is 0.10. Later versions are available in the git repository.","modified":"2026-07-25T03:56:38.439353399Z","published":"2026-07-22T20:31:23.693Z","database_specific":{"cna_assigner":"CPANSec","cwe_ids":["CWE-347"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/13xxx/CVE-2026-13089.json"},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2026/07/22/17"},{"type":"WEB","url":"https://cpan.org/modules"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/13xxx/CVE-2026-13089.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-13089"},{"type":"REPORT","url":"https://github.com/ritou/p5-oidc-lite/pull/31"},{"type":"FIX","url":"https://security.metacpan.org/patches/O/OIDC-Lite/0.10/CVE-2026-13089-r1.patch"},{"type":"PACKAGE","url":"https://github.com/ritou/p5-oidc-lite"},{"type":"ARTICLE","url":"https://datatracker.ietf.org/doc/html/rfc8725#section-3.1"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ritou/p5-oidc-lite","events":[{"introduced":"0"},{"fixed":"bdae183fc0532da22a8191478d41bfa0f120a988"}],"database_specific":{"source":["AFFECTED_FIELD","DESCRIPTION"],"extracted_events":[{"introduced":"0"},{"last_affected":"0.12.1"},{"fixed":"0.12.1"}]}}],"versions":["0.12","0.11","0.10","0.09","0.08","0.06","0.05","0.04"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-13089.json"}}],"schema_version":"1.7.5"}