Update module github.com/microsoft/kiota-http-go to v1 [SECURITY]#419
Open
renovate[bot] wants to merge 1 commit into
Open
Update module github.com/microsoft/kiota-http-go to v1 [SECURITY]#419renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Contributor
Author
ℹ️ Artifact update noticeFile name: go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v0.16.1→v1.5.5Kiota abstractions RedirectHandler leaks Cookie/Proxy-Authorization headers on cross-host redirect
CVE-2026-44503 / GHSA-7j59-v9qr-6fq9
More information
Details
Summary
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.
This vulnerability is present in the RedirectHandlers for:
https://github.com/microsoft/kiota-dotnet
https://github.com/microsoft/kiota-java
https://github.com/microsoft/kiota-python
https://github.com/microsoft/kiota-typescript
https://github.com/microsoft/kiota-http-go
Details
Only the Authorization header is removed; Cookie, Proxy-Authorization, and all custom headers are forwarded to the redirect target.
This is the default middleware in every kiota-java HTTP client created via KiotaClientFactory.create(). OkHttp's built-in redirect handler (which handles this correctly) is explicitly disabled at line 63 of KiotaClientFactory.java in favor of kiota's broken implementation.
Vulnerable code in RedirectHandler.java lines 107-116 (getRedirect method) in versions 1.90 and earlier:
PoC
Clone the repository:
git clone --depth 1 https://github.com/microsoft/kiota-java.git
cd kiota-java
Create the PoC test file at:
components/http/okHttp/src/test/java/com/microsoft/kiota/http/middleware/SecurityPoC.java
With this content:
Run the tests:
./gradlew :components:http:okHttp:test --tests "com.microsoft.kiota.http.middleware.SecurityPoC"
Result: BUILD SUCCESSFUL, 2 tests passed, 0 failures.
Both tests confirm Cookie and Proxy-Authorization headers are sent to the attacker's server on cross-host redirect.
Impact
The kiota-java bug is more severe because it leaks ALL sensitive headers simultaneously (Cookie + Proxy-Authorization + custom auth headers), not just one type.
Attack scenario: An attacker who can trigger a cross-origin redirect from a trusted API (via open redirect, MITM, or DNS rebinding) captures the victim's session cookies, proxy credentials, and API keys from the redirected request.
Impact:
All consumers of kiota-java are affected, including Microsoft Graph SDK for Java.
Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:H/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
microsoft/kiota-http-go (github.com/microsoft/kiota-http-go)
v1.5.5Compare Source
Bug Fixes
v1.5.4Compare Source
Bug Fixes
v1.5.3Compare Source
Bug Fixes
v1.5.2Compare Source
Bug Fixes
v1.5.1Compare Source
Bug Fixes
v1.5.0Compare Source
Features
v1.4.7Compare Source
Changed
v1.4.6Compare Source
Changed
v1.4.5Compare Source
Changed
v1.4.4Compare Source
Changed
http.request.resend_delayas a span attribute for the retry handlerhttp.retry_countspan attribute tohttp.request.resend_countto conform to OpenTelemetry specs.v1.4.3Compare Source
Changed
v1.4.2Compare Source
Changed
v1.4.1Compare Source
Changed
v1.4.0Compare Source
v1.3.3Compare Source
v1.3.2Compare Source
Changed
v1.3.1Compare Source
Changed
v1.3.0Compare Source
Added
GetDefaultMiddlewaresWithOptions.v1.2.1Compare Source
Changed
v1.2.0Compare Source
Added
v1.1.2Compare Source
Changed
v1.1.1Compare Source
Added
throwIfFailedResponse.v1.1.0Compare Source
Added
v1.0.1Compare Source
Changed
v1.0.0Compare Source
Changed
v0.17.0Compare Source
Added
v0.16.2Compare Source
Added
ReplacePathTokensthat can be used to process url replacement logic globally.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.