CPANSA-Punk-OAuth2-2026-75628: Punk-OAuth2 vulnerability
| Publisher | giterlizzi | Document category | csaf_security_advisory |
|---|---|---|---|
| Initial release date | 2026-08-20T00:00:00 | Engine | CSAF Perl Toolkit 0.26 |
| Current release date | 2026-08-20T00:00:00 | Build Date | |
| Current version | 1 | Status | final |
| CVSS v3.1 Base Score | 5.7 | Severity | Medium |
| Original language | Language | en | |
| Also referred to | |||
Vulnerability Description
Punk::OAuth2 versions before 0.03 for Perl allow an attacker-chosen off-site redirect after login because same_origin_path accepts a backslash or tab in the return parameter.
oauth2_login reads the return parameter from the initiation request, runs same_origin_path over it, and stores the survivor in the session flow record as the post-login redirect target. That check rejects a value that does not begin with a slash, one with a slash as its second byte, and one containing CR or LF. A backslash and a tab pass. The URL Standard treats a backslash as equivalent to a slash for special schemes, so `/\evil.example` parses with the authority `evil.example`. It also strips ASCII tab before parsing, so a tab between two leading slashes leaves `//evil.example`.
A crafted link to the application's own login route lands the victim on the attacker's site after a genuine authentication. The redirect carries no authorization code or access token.
Vulnerabilities
CVE-2026-75628
Vulnerability DescriptionPunk::OAuth2 versions before 0.03 for Perl allow an attacker-chosen off-site redirect after login because same_origin_path accepts a backslash or tab in the return parameter.
oauth2_login reads the return parameter from the initiation request, runs same_origin_path over it, and stores the survivor in the session flow record as the post-login redirect target. That check rejects a value that does not begin with a slash, one with a slash as its second byte, and one containing CR or LF. A backslash and a tab pass. The URL Standard treats a backslash as equivalent to a slash for special schemes, so `/\evil.example` parses with the authority `evil.example`. It also strips ASCII tab before parsing, so a tab between two leading slashes leaves `//evil.example`.
A crafted link to the application's own login route lands the victim on the attacker's site after a genuine authentication. The redirect carries no authorization code or access token.
| Weakness | CWE-601 : URL Redirection to Untrusted Site ('Open Redirect') |
|---|
Product status
Known affected
| Product | Score | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Punk-OAuth2 less than 0.03 |
|
Fixed
- Punk-OAuth2 greater than or equal 0.03
giterlizzi
Namespace: https://github.com/giterlizzi/
gdt@cpan.org
References
- CPANSA-Punk-OAuth2-2026-75628 JSON self
https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2026/cpansa-punk-oauth2-2026-75628.json - https://datatracker.ietf.org/doc/html/rfc9700#section-4.11.1 external
https://datatracker.ietf.org/doc/html/rfc9700#section-4.11.1 - https://metacpan.org/release/LNATION/Punk-OAuth2-0.02/source/include/pox/pox_util.h#L94 external
https://metacpan.org/release/LNATION/Punk-OAuth2-0.02/source/include/pox/pox_util.h#L94 - https://metacpan.org/release/LNATION/Punk-OAuth2-0.03/changes external
https://metacpan.org/release/LNATION/Punk-OAuth2-0.03/changes - https://url.spec.whatwg.org/#concept-basic-url-parser external
https://url.spec.whatwg.org/#concept-basic-url-parser - https://url.spec.whatwg.org/#relative-slash-state external
https://url.spec.whatwg.org/#relative-slash-state - http://www.openwall.com/lists/oss-security/2026/08/20/1 external
http://www.openwall.com/lists/oss-security/2026/08/20/1 - CVE-2026-75628 (NVD) external
https://nvd.nist.gov/vuln/detail/CVE-2026-75628
Revision history
| Version | Date of the revision | Summary of the revision |
|---|---|---|
| 1 | Thu Aug 20 00:00:00 2026 | First release |
Sharing rules
TLP:WHITE
For the TLP version see: https://www.first.org/tlp/