{"id":"CVE-2026-49336","published":"2026-06-19T18:19:03Z","modified":"2026-06-22T15:05:46Z","title":"@microsoft/kiota-http-fetchlibrary: Bearer token and Cookie leak across origin on redirect due to case-mismatched…","vendor":"Microsoft","product":"kiota-typescript","tier":"tail","description":{"text":"@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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00748,"percentile":0.55788,"provenance":"source"},"cwes":[{"id":"CWE-178","name":"Improper Handling of Case Sensitivity"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/microsoft/kiota-typescript/security/advisories/GHSA-396q-4vc8-28x9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/microsoft/kiota-typescript/commit/09f8bd9b34d68bf412a9b78f6ca7e7961ef14974","tags":["x_refsource_MISC"]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":11.16},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"microsoft","affectedVersions":[{"vendor":"microsoft","product":"kiota-typescript","versions":[">= 1.0.0-preview.97, < 1.0.0-preview.102"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-06-22T15:05:06.323889Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@microsoft/kiota-http-fetchlibrary","vulnerableRanges":[">=1.0.0-preview.97, <1.0.0-preview.102"],"patched":["1.0.0-preview.102"],"from":["GHSA-396q-4vc8-28x9"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-38061","exploited":false,"provenance":"source"}}