Skip to main content

kiota-http-fetchlibrary CVE-2026-49336

| EUVDEUVD-2026-38061 MEDIUM
Improper Handling of Case Sensitivity (CWE-178)
2026-06-19 GitHub_M GHSA-396q-4vc8-28x9
5.5
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Recon
    Attacker controls cross-origin redirect destination
  2. Delivery
    Victim SDK sends authenticated API request with Bearer token
  3. Exploit
    API server (or MITM) issues 30x redirect to attacker host
  4. Install
    RedirectHandler scrubSensitiveHeaders no-op leaves lowercased auth headers intact
  5. C2
    SDK forwards authorization header to attacker's server
  6. Execute
    Attacker captures Bearer token
  7. Impact
    Attacker 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.7% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

kiota-typescript 1.0.0-preview.97, < 1.0.0-preview.102

Affected Packages

npm @microsoft/kiota-http-fetchlibrary fix: 1.0.0-preview.102
euvd kiota_typescript_1_0_0_preview_97 fix: 1.0.0-preview.102

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

Vendor (GitHub_M) PRIMARY 5.5 MEDIUM
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
vuln.today AI 3.7 LOW

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

2
Patch available
Jun 19, 2026 - 21:02 EUVD
CVE Published
Jun 19, 2026 - 18:19 cve.org
MEDIUM 5.5

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

EPSS Score
0.7%
Top 54% exploitable
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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 MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +28
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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