Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker controls cross-origin redirect destination
-
DeliveryVictim SDK sends authenticated API request with Bearer token
-
ExploitAPI server (or MITM) issues 30x redirect to attacker host
-
InstallRedirectHandler scrubSensitiveHeaders no-op leaves lowercased auth headers intact
-
C2SDK forwards authorization header to attacker's server
-
ExecuteAttacker captures Bearer token
-
ImpactAttacker authenticates to original API as victim
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Case sensitivity handling
|
| Exploitation Conditions | Exploitation requires the application to be running @microsoft/kiota-http-fetchlibrary in the default middleware chain (MiddlewareFactory.getDefaultMiddlewares) without any custom RedirectHandlerOptions that override scrubSensitiveHeaders, and to use an authentication provider that sets the Authorization or Cookie request header - the typical configuration for all BaseBearerTokenAuthenticationProvider-based SDK clients. No non-default SDK configuration is required; the flaw is active out of the box. The limiting condition is that the attacker must be able to control or manipulate the destination of a cross-origin 30x redirect from the API the victim SDK is calling - typically requiring a compromised API server, an open redirect vulnerability in the upstream API, or a network-level interception capability (e.g., DNS manipulation or MITM on an unencrypted leg). Exploitation is constrained to environments where the SDK is authenticating against APIs that may issue cross-origin redirects; internal-only deployments where all API endpoints are on a single origin are substantially lower risk. CVSS PR:N confirms no attacker-side credentials are required. |
| Impact | The CVSS 4.0 score of 5.5 (AV:N/AC:L/AT:N/PR:N/UI:N/VC:L) with E:P indicates a network-exploitable, low-complexity flaw with no privileges or user interaction required and confirmed proof-of-concept code. The vulnerability is NOT listed in CISA KEV, so active exploitation is unconfirmed. The primary risk amplifier is universality: the bug lives in the default middleware chain, so no misconfiguration is needed - any kiota-generated TypeScript SDK consuming this library in its default form is vulnerable. However, real-world exploitability is bounded by the need for an attacker to control the cross-origin redirect target, which requires either compromising the upstream API server, exploiting an open redirect in it, or performing network-level interception - conditions that reduce opportunistic mass exploitation risk. The confidentiality impact (VC:L) understates business risk for workloads using OAuth Bearer tokens: a leaked token enables full API impersonation as the victim application, potentially accessing sensitive Microsoft Graph or other protected resources. CVSS 4.0 E:P elevates urgency beyond a purely theoretical threat, but the absence of KEV listing suggests exploitation has not been observed at scale. The provided CVSS 4.0 AC:L differs from my independent assessment (AC:H), which accounts for the requirement to influence the redirect destination; defenders should verify their specific API's redirect behavior. |
| Exploit ScenarioDerived | An attacker registers a server at attacker.example.com and arranges for a kiota-targeted API endpoint to return a 301 redirect to their domain - achievable through an open redirect vulnerability in the API, a compromised upstream service, or a MITM position on the network path. The victim's kiota-generated TypeScript SDK, running its default middleware chain, follows the redirect and silently forwards the authorization: Bearer <token> header because the scrubSensitiveHeaders no-op leaves it intact. The attacker's server logs the Bearer token and uses it to authenticate to the original API (e.g., Microsoft Graph) as the victim application. Proof-of-concept code exists per CVSS 4.0 E:P designation, meaning the attack mechanism is publicly documented. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 19, 2026
Credential leakage in @microsoft/kiota-http-fetchlibrary versions 1.0.0-preview.97 through 1.0.0-preview.101 causes Bearer tokens and session cookies to be forwarded to attacker-controlled cross-origin redirect destinations because the default RedirectHandler's header-scrubbing logic silently fails: FetchRequestAdapter lowercases all header keys before the middleware sees them, but scrubSensitiveHeaders performs PascalCase deletes (delete headers.Authorization), targeting keys that no longer exist. This flaw is present in the default middleware chain with no opt-in configuration required, affecting every kiota-generated TypeScript SDK - including Microsoft Graph clients - that uses BaseBearerTokenAuthenticationProvider or any auth provider that sets the Authorization header. Proof-of-concept code exists (CVSS 4.0 E:P), and a vendor patch is available in version 1.0.0-preview.102; no active exploitation has been confirmed in the CISA KEV at time of analysis.
RemediationAI
Upgrade @microsoft/kiota-http-fetchlibrary to version 1.0.0-preview.102, which fixes the case-sensitivity bug in scrubSensitiveHeaders and also extends the scrub to cover proxy-authorization. The patch is detailed in commit 09f8bd9b34d68bf412a9b78f6ca7e7961ef14974 and the GitHub advisory at https://github.com/microsoft/kiota-typescript/security/advisories/GHSA-396q-4vc8-28x9. If an immediate upgrade is not feasible, a targeted workaround is to supply a custom scrubSensitiveHeaders callback in RedirectHandlerOptions that iterates header keys case-insensitively (replicating the fix locally) - this avoids disrupting redirect-dependent API flows while closing the exposure. A more disruptive but complete compensating control is to configure the middleware chain with maxRedirects: 0 to disable automatic redirect following entirely; this eliminates the leakage path but will break any API calls that depend on legitimate server-side redirects, requiring callers to handle redirects manually. Given the default-on exposure path, upgrading to 1.0.0-preview.102 is strongly preferred over workarounds.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected package is @microsoft/kiota-http-fetchlibrary, part of the kiota-typescript ecosystem (CPE: cpe:2.3:a:microsoft:kiota-typescript:*:*:*:*:*:*:*:*). The root cause is CWE-178 (Improper Handling of Case Sensitivity): FetchRequestAdapter.getRequestFromRequestInformation normalizes all HTTP request header keys to lowercase before the headers object reaches any middleware, so by the time RedirectHandler executes, the Authorization header is stored as authorization and Cookie as cookie. The default scrubSensitiveHeaders callback in RedirectHandlerOptions used static property deletion - delete headers.Authorization and delete headers.Cookie - which targets non-existent PascalCase keys, making the scrub a complete and silent no-op. The bug was introduced in this window of preview versions and is embedded in MiddlewareFactory.getDefaultMiddlewares, making it universally active in default SDK setups. The fix in commit 09f8bd9b replaces static deletes with a case-insensitive loop over Object.keys() matching against lowercased comparisons, and also extends coverage to proxy-authorization, which was previously unaddressed.
Know when Kiota Typescript 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P
Attacker must control or manipulate a cross-origin redirect target (non-trivial), justifying AC:H; impact is token disclosure only, so C:L with no I or A impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
@microsoft/kiota-http-fetchlibrary provides TypeScript libraries for Kiota-generated API clients. In versions 1.0.0-preview.97 through 1.0.0-preview.101, @microsoft/kiota-http-fetchlibrary's RedirectHandler is documented as stripping Authorization and Cookie from cross-origin redirect targets, but the default scrubSensitiveHeaders callback in RedirectHandlerOptions uses case-sensitive property deletion (delete headers.Authorization, delete headers.Cookie) on a headers object that FetchRequestAdapter.getRequestFromRequestInformation has already lower-cased. The delete therefore targets keys that do not exist, the scrub is a no-op, and any Bearer token or Cookie attached by a kiota-generated SDK is forwarded to an attacker-controlled host across a 30x redirect. This is reachable in the default middleware chain (MiddlewareFactory.getDefaultMiddlewares) with no custom configuration, and applies to every kiota-generated TypeScript SDK that uses BaseBearerTokenAuthenticationProvider or any other authentication provider that sets the Authorization request header. Version 1.0.0-preview.102 patches the issue.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-38061
GHSA-396q-4vc8-28x9
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB