Description
The RedirectHandler middleware in microsoft/kiota-java (com.microsoft.kiota:microsoft-kiota-http-okHttp v1.9.0) and other Kiota libraries fails to strip sensitive HTTP headers when following 3xx redirects to a different host or scheme. Only the Authorization header is removed; Cookie, Proxy-Authorization, and all custom headers are forwarded to the redirect target.
Problem types
CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Product status
References
github.com/...a-java/security/advisories/GHSA-7j59-v9qr-6fq9
github.com/...a-java/security/advisories/GHSA-7j59-v9qr-6fq9