{ "document": { "aggregate_severity": { "text": "medium" }, "category": "csaf_security_advisory", "csaf_version": "2.0", "distribution": { "tlp": { "label": "WHITE", "url": "https://www.first.org/tlp/" } }, "lang": "en", "notes": [ { "category": "description", "text": "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.\n\noauth2_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`.\n\nA 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.", "title": "Vulnerability Description" } ], "publisher": { "category": "other", "contact_details": "gdt@cpan.org", "name": "giterlizzi", "namespace": "https://github.com/giterlizzi/" }, "references": [ { "category": "self", "summary": "CPANSA-Punk-OAuth2-2026-75628 JSON", "url": "https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2026/cpansa-punk-oauth2-2026-75628.json" }, { "category": "external", "summary": "https://datatracker.ietf.org/doc/html/rfc9700#section-4.11.1", "url": "https://datatracker.ietf.org/doc/html/rfc9700#section-4.11.1" }, { "category": "external", "summary": "https://metacpan.org/release/LNATION/Punk-OAuth2-0.02/source/include/pox/pox_util.h#L94", "url": "https://metacpan.org/release/LNATION/Punk-OAuth2-0.02/source/include/pox/pox_util.h#L94" }, { "category": "external", "summary": "https://metacpan.org/release/LNATION/Punk-OAuth2-0.03/changes", "url": "https://metacpan.org/release/LNATION/Punk-OAuth2-0.03/changes" }, { "category": "external", "summary": "https://url.spec.whatwg.org/#concept-basic-url-parser", "url": "https://url.spec.whatwg.org/#concept-basic-url-parser" }, { "category": "external", "summary": "https://url.spec.whatwg.org/#relative-slash-state", "url": "https://url.spec.whatwg.org/#relative-slash-state" }, { "category": "external", "summary": "http://www.openwall.com/lists/oss-security/2026/08/20/1", "url": "http://www.openwall.com/lists/oss-security/2026/08/20/1" }, { "category": "external", "summary": "CVE-2026-75628 (NVD)", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-75628" } ], "title": "Punk-OAuth2 vulnerability", "tracking": { "current_release_date": "2026-08-20T00:00:00", "generator": { "engine": { "name": "CSAF Perl Toolkit", "version": "0.26" } }, "id": "CPANSA-Punk-OAuth2-2026-75628", "initial_release_date": "2026-08-20T00:00:00", "revision_history": [ { "date": "2026-08-20T00:00:00", "number": "1", "summary": "First release" } ], "status": "final", "version": "1" } }, "product_tree": { "branches": [ { "branches": [ { "category": "product_version_range", "name": "vers:cpan/<0.03", "product": { "name": "Punk-OAuth2 less than 0.03", "product_id": "CSAFPID-0001", "product_identification_helper": { "purl": "pkg:cpan/Punk-OAuth2" } } }, { "category": "product_version_range", "name": "vers:cpan/>=0.03", "product": { "name": "Punk-OAuth2 greater than or equal 0.03", "product_id": "CSAFPID-0002", "product_identification_helper": { "purl": "pkg:cpan/Punk-OAuth2" } } } ], "category": "product_name", "name": "Punk-OAuth2" } ] }, "vulnerabilities": [ { "cve": "CVE-2026-75628", "cwe": { "id": "CWE-601", "name": "URL Redirection to Untrusted Site ('Open Redirect')" }, "notes": [ { "category": "description", "text": "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.\n\noauth2_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`.\n\nA 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.", "title": "Vulnerability Description" } ], "product_status": { "fixed": [ "CSAFPID-0002" ], "known_affected": [ "CSAFPID-0001" ] }, "scores": [ { "cvss_v3": { "baseScore": 5.7, "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N", "version": "3.1" }, "products": [ "CSAFPID-0001" ] } ] } ] }