# CVE-2026-75628: 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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.7
- **CVSS:** 5.7 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.50% (percentile 36, 2026-11-26)
- **CWE:** CWE-601
- **Published:** 2026-08-20T00:40:08.220Z
- **Modified:** 2026-10-27T10:10:00.240Z

## Who should check

- Anyone running Punk-OAuth2 \< 0.03

## 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.

## Affected and fixed versions

- Punk-OAuth2: \< 0.03 (cvelist)

## Mitigation

- Upgrade Punk-OAuth2 to 0.03 or later.
- Vendor workaround: For deployments that cannot upgrade to 0.03, strip the return query parameter from requests to the oauth2\_login initiation route at the reverse proxy. Logins then use the configured redirect\_ok destination.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-75628. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-75628.md
Affected: Punk-OAuth2 < 0.03
Fixed in: Punk-OAuth2 0.03

Steps:
1. Search this machine and project for Punk-OAuth2: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-75628 being exploited?

There is no confirmed exploitation: CVE-2026-75628 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.50% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-75628?

Medium: CVSS 5.7 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-75628?

Punk-OAuth2 \< 0.03.

### Is there a fix for CVE-2026-75628?

Yes. Fixed in Punk-OAuth2 0.03. Upgrade Punk-OAuth2 to 0.03 or later. Vendor workaround: For deployments that cannot upgrade to 0.03, strip the return query parameter from requests to the oauth2\_login initiation route at the reverse proxy. Logins then use the configured redirect\_ok destination.

### How do I check if I'm affected by CVE-2026-75628?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- article: <https://metacpan.org/release/LNATION/Punk-OAuth2-0.02/source/include/pox/pox_util.h#L94>
- article: <https://datatracker.ietf.org/doc/html/rfc9700#section-4.11.1>
- article: <https://url.spec.whatwg.org/#relative-slash-state>
- article: <https://url.spec.whatwg.org/#concept-basic-url-parser>
- other: <https://metacpan.org/release/LNATION/Punk-OAuth2-0.03/changes>
- other: <http://www.openwall.com/lists/oss-security/2026/08/20/1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-75628>

HTML: <https://flawdb.com/CVE-2026-75628> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-75628>
