Cross-origin redirect leakage is a browser security issue where sensitive URL data is exposed during a redirect to another origin. It happens when query strings, path fragments, or authentication parameters are carried into the destination request or revealed through headers, referrers, or client-side handling.
How cross-origin redirect leakage happens
Cross-origin redirect leakage is a browser behaviour problem, not a server-side flaw in isolation. The risk appears when a redirect carries sensitive URL material into a request made to a different origin, or when the browser exposes that material through referrer headers, navigation state, or client-side scripts that can read the URL before or after the redirect completes.
The mechanism matters because URLs are often treated as disposable transport, yet they regularly contain tokens, session hints, invitation links, password-reset parameters, or other values that were never meant to leave their original trust boundary. Once those values are placed in a request path, query string, fragment, or header-visible location, the browser may hand them to a destination site or to adjacent intermediaries in ways the application did not intend.
Why redirect leakage is dangerous
The core danger is unintended disclosure. A redirect can transform a private URL into visible request metadata, browser history, analytics input, log data, or referrer information. That exposure can reveal authentication material, one-time links, account identifiers, or internal routing detail that helps an attacker replay a flow or pivot into a protected area.
Leakage is especially risky when the original URL was used as a shortcut for login, password recovery, SSO handoff, invite acceptance, or cross-app navigation. In those patterns, a single exposed parameter can become enough to confirm an account, complete an action, or correlate a user across systems.
Redirect leakage also interacts with broader browser-side attack classes. The XS-Leaks Guide is useful here because redirects can become part of a side channel, where the fact of navigation, timing, or destination behaviour exposes more than the page content itself.
Where organisations should look for exposure
Exposure review starts with the full redirect path, not just the destination page. Teams should inspect application routes, identity handoffs, marketing links, deep links, and any code that preserves or forwards URL parameters across origins. The most important question is whether sensitive values are being placed in URLs at all, and if so, whether they are later copied into headers, logs, browser-visible state, or third-party destinations.
It is also worth checking whether the browser security model is being assumed instead of verified. The Same-Origin Policy and Browser Security Model Guide is a strong companion reference because it explains what the browser will and will not isolate for you, including where redirects, CORS, and other cross-origin behaviours still permit information to cross boundaries.
For teams hardening the HTTP layer, the Security Headers Guide helps frame the supporting controls that reduce accidental exposure, especially referrer-related behaviour, cross-origin policy headers, and cookie settings that limit what is sent or revealed during navigation.
How to reduce exposure and contain damage
The safest pattern is to keep secrets and sensitive action parameters out of URLs altogether. Where redirects are unavoidable, use short-lived opaque references, keep destination handling narrow, and avoid forwarding query strings or fragments unless there is a clear business need. When a redirect must preserve state, treat that state as sensitive and minimise how widely it is echoed or stored.
Controls that reduce cross-origin exposure also need to be consistent across the application estate. The CSP vs CORS guide is relevant because teams often overestimate what cross-origin policy mechanisms can do. CSP and CORS solve different problems, and neither one alone prevents a sensitive redirect target from receiving or logging a leaked URL value.
In practice, response headers, redirect design, and client-side handling should all be reviewed together. If one layer strips a parameter but another layer reintroduces it into a URL, the leakage problem simply moves rather than disappears.
Detection and post-incident review
Detection usually depends on correlating redirect behaviour with downstream access and logs. Look for unusual referrer values, unexpected query strings on destination pages, repeated hits to one-time endpoints, or requests that should only occur after a very specific user journey. Browser-side telemetry and server logs are both useful because the leak may show up first as a navigation artifact rather than a direct application error.
After suspected exposure, review whether any parameter acted as a bearer token, account locator, or replayable action link. If so, revoke or invalidate the affected material, inspect whether the destination origin or any third party received it, and check whether the value was cached, logged, or shared through a browser-managed path that outlived the original session.
Leak review should also include adjacent controls such as referrer policy, logging hygiene, and link generation. If the same redirect pattern exists in multiple products or tenants, assume the issue is systemic until proven otherwise.
Risk and Threat Considerations
Cross-origin redirect leakage matters because browsers can unintentionally carry sensitive URL material across a trust boundary. The main risk is that tokens, identifiers, or session-linked parameters intended for one application become visible to another origin, to logs, or to observers who only need one successful navigation to gain leverage.
Failure mechanism: A redirect preserves sensitive URL content, or the browser exposes it through referrers, history, client-side access, or destination logging, allowing data that should have remained local to cross origin boundaries.
Impact: Attackers or unintended recipients may replay links, confirm account state, correlate users, or obtain enough context to continue a session or social-engineering flow.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP ASVS, NIST SP 800-53 Rev 5 and CIS Controls v8 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP ASVS | V12 — Secure Communication | Redirect leakage exposes data during browser navigation and cross-origin transfer. |
| Recommendation — Minimise sensitive URL data during redirects and verify cross-origin handling does not expose it. | ||
| NIST SP 800-53 Rev 5 | SC-7 — Boundary Protection | Cross-origin redirects cross a trust boundary and can leak information across it. |
| AU-12 — Audit Record Generation | Leakage often surfaces in logs and request traces created during navigation. | |
| Recommendation — Constrain redirect flows so sensitive data does not cross untrusted boundaries. Log redirect events and inspect records for exposed URL material. | ||
| ISO/IEC 27001:2022 | A.8.24 — Use of cryptography | Sensitive redirect parameters should be protected so they are not exposed in transit or handling. |
| Recommendation — Avoid placing sensitive data in redirect URLs and protect any necessary state appropriately. | ||
| CIS Controls v8 | CIS-16 — Application Software Security | Redirect handling is an application security behaviour that needs secure design and testing. |
| Recommendation — Test redirect flows for parameter leakage and remove sensitive data from navigational URLs. | ||
Practitioner Guidance
Why practitioners should care: This is one of those browser issues that is easy to miss because the application may appear to function normally. If sensitive parameters are allowed into URLs, the redirect path becomes part of your security boundary whether you planned for it or not.
What to watch for: Pay special attention to login handoffs, password-reset flows, invite links, analytics redirects, and any route that forwards full URLs to another origin. Those are the places where apparently harmless navigation can turn into a data exposure path.
Practitioner takeaway: Treat sensitive URL data as transient, minimise what survives a redirect, and verify the whole navigation chain rather than testing only the final page.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org