CVE-2026-42350: Kargo has Open Redirect in UI OIDC Login Flow via redirectTo Query Parameter
The Kargo UI reads a redirectTo query parameter on the /login and /token-renew routes and, following a successful OIDC authentication, uses its value as the destination for client-side navigation. The parameter is treated as a path string but is not constrained to targets within the UI’s own origin. Protocol-relative values (e.g. //attacker.example.com) and values using a backslash prefix (e.g. /\attacker.example.com) are accepted and result in navigation to an external origin.
An attacker can exploit this by crafting a URL of the form https://kargo.example.com/login?redirectTo=/token-renew?redirectTo=/\attacker.example.com and delivering it to a victim through any channel that permits link sharing. When the victim follows the link and signs in to Kargo, the browser is redirected to the attacker-controlled origin. Because the initial URL resolves to the legitimate Kargo host and the user is genuinely authenticated in the process, the redirect inherits the perceived trust of the user’s own Kargo instance.
The principal risk is that such a redirect can serve as a stepping stone for credentials phishing. The attacker-controlled page can present a UI resembling Kargo or an associated identity provider and solicit credentials from the user. The vulnerability does not, by itself, expose any data from Kargo or permit modification of Kargo resources, and it does not affect authentication when Kargo’s built-in admin credentials are used.
References
- github.com/advisories/GHSA-g7gw-m874-7rmf
- github.com/akuity/kargo/commit/0b89215740e93d18f1ab2187f6f9733137f9d00f
- github.com/akuity/kargo/commit/52107be1d392feaf02d640083cc000be5756f557
- github.com/akuity/kargo/commit/768b2a62dcd70b7b2313290fea6c673e49e0c2d4
- github.com/akuity/kargo/commit/d2c8d185b7cc43e225e0e2d17937511820479834
- github.com/akuity/kargo/commit/db8ca6c015defc5ea29afb32cdea982b657f263a
- github.com/akuity/kargo/releases/tag/v1.10.2
- github.com/akuity/kargo/releases/tag/v1.7.10
- github.com/akuity/kargo/releases/tag/v1.8.13
- github.com/akuity/kargo/releases/tag/v1.9.8
- github.com/akuity/kargo/security/advisories/GHSA-g7gw-m874-7rmf
- nvd.nist.gov/vuln/detail/CVE-2026-42350
Code Behaviors & Features
Detect and mitigate CVE-2026-42350 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →