You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Reject untrusted 307 redirect locations in the HTTP client #2098
AdyenCustomRedirectStrategy validates a redirect location only when the response status is 308. A 307 Temporary Redirect is also automatically handled by Apache HttpClient, but its destination is not checked by this library. A 307 redirect preserves the original HTTP method and request body. For an authenticated payment request, an unsafe redirect could therefore resend the request body and X-API-Key header to a non-Adyen host.
The validation only triggers on 308, so 307 redirects were being followed without any check at all.
#2099 covers this together with #2097 , scheme and host are now validated for every redirect the SDK follows. We'll get it into the next release.
Appreciate you doing the full round-trip on this, report, fix, and tests.
Activity
ashwaniarya-adyen commentedon Oct 28, 2026
Hi @visheshupadhyay,
Thanks for this one too.
The validation only triggers on 308, so 307 redirects were being followed without any check at all.
#2099 covers this together with #2097 , scheme and host are now validated for every redirect the SDK follows. We'll get it into the next release.
Appreciate you doing the full round-trip on this, report, fix, and tests.