CPANSA-Punk-OAuth2-2026-75866: Punk-OAuth2 vulnerability
| Publisher | giterlizzi | Document category | csaf_security_advisory |
|---|---|---|---|
| Initial release date | 2026-08-22T00:00:00 | Engine | CSAF Perl Toolkit 0.26 |
| Current release date | 2026-08-22T00:00:00 | Build Date | |
| Current version | 1 | Status | final |
| CVSS v3.1 Base Score | 9.1 | Severity | Critical |
| Original language | Language | en | |
| Also referred to | |||
Vulnerability Description
Punk::OAuth2::Server versions through 0.03 for Perl issue access tokens outside a client's registered scopes and grant types because no authorization path reads them.
Punk::OAuth2::Server::Store registers scopes and grant_types per client and documents both as client registration. token dispatches on the grant_type in the request body, so a client registered for authorization_code alone can ask for client_credentials, and that arm passes the requested scope straight to the minter, which signs it into the at+jwt access token. authorize copies the query scope into the authorization code record without comparing it against the registration, leaving the optional consent hook as the only check between an arbitrary scope and the issued code. redirect_uris on the same client row is read and enforced.
A registered client can obtain a correctly signed token carrying any scope it names, and a resource server running Punk::OAuth2::Checker accepts that token and honours the scope. A client registered without a secret authenticates on its client_id alone, so anyone who knows that identifier can request one.
Vulnerabilities
CVE-2026-75866
Vulnerability DescriptionPunk::OAuth2::Server versions through 0.03 for Perl issue access tokens outside a client's registered scopes and grant types because no authorization path reads them.
Punk::OAuth2::Server::Store registers scopes and grant_types per client and documents both as client registration. token dispatches on the grant_type in the request body, so a client registered for authorization_code alone can ask for client_credentials, and that arm passes the requested scope straight to the minter, which signs it into the at+jwt access token. authorize copies the query scope into the authorization code record without comparing it against the registration, leaving the optional consent hook as the only check between an arbitrary scope and the issued code. redirect_uris on the same client row is read and enforced.
A registered client can obtain a correctly signed token carrying any scope it names, and a resource server running Punk::OAuth2::Checker accepts that token and honours the scope. A client registered without a secret authenticates on its client_id alone, so anyone who knows that identifier can request one.
| Weakness | CWE-862 : Missing Authorization |
|---|
Product status
Known affected
| Product | Score | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Punk-OAuth2 less than 0.04 |
|
Fixed
- Punk-OAuth2 greater than or equal 0.04
giterlizzi
Namespace: https://github.com/giterlizzi/
gdt@cpan.org
References
- CPANSA-Punk-OAuth2-2026-75866 JSON self
https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2026/cpansa-punk-oauth2-2026-75866.json - https://datatracker.ietf.org/doc/html/rfc6749#section-3.3 external
https://datatracker.ietf.org/doc/html/rfc6749#section-3.3 - https://datatracker.ietf.org/doc/html/rfc6749#section-5.2 external
https://datatracker.ietf.org/doc/html/rfc6749#section-5.2 - https://metacpan.org/release/LNATION/Punk-OAuth2-0.03/view/lib/Punk/OAuth2/Server/Store.pm external
https://metacpan.org/release/LNATION/Punk-OAuth2-0.03/view/lib/Punk/OAuth2/Server/Store.pm - https://metacpan.org/release/LNATION/Punk-OAuth2-0.04/changes external
https://metacpan.org/release/LNATION/Punk-OAuth2-0.04/changes - http://www.openwall.com/lists/oss-security/2026/08/22/6 external
http://www.openwall.com/lists/oss-security/2026/08/22/6 - CVE-2026-75866 (NVD) external
https://nvd.nist.gov/vuln/detail/CVE-2026-75866
Revision history
| Version | Date of the revision | Summary of the revision |
|---|---|---|
| 1 | Sat Aug 22 00:00:00 2026 | First release |
Sharing rules
TLP:WHITE
For the TLP version see: https://www.first.org/tlp/