Microsoft kiota-java
Kiota abstractions RedirectHandler leaks Cookie/Proxy-Authorization headers on cross-host redirect
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.9.1
Fixed in 1.9.1
- < 1.22.0
Fixed in 1.22.0
- < 1.5.5
Fixed in 1.5.5
- < 1.0.0-preview.100
Fixed in 1.0.0-preview.100
- < 1.9.1
Fixed in 1.9.1
- < 1.9.9
Fixed in 1.9.9
Mitigation
Upgrade kiota-java to 1.9.1 or later.
Upgrade Microsoft.Kiota.Abstractions to 1.22.0 or later.
Upgrade github.com/microsoft/kiota-http-go to 1.5.5 or later.
Upgrade kiota-typescript to 1.0.0-preview.100 or later.
Upgrade microsoft-kiota-abstractions to 1.9.1 or later.
Upgrade microsoft-kiota-http to 1.9.9 or later.
References
- Vendor advisory github.com/microsoft/kiota-java/security/advis…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.