{"id":"EUVD-2026-38061","enisaUuid":"4086af24-7051-37ed-9bdc-eb83e7c3745f","description":"@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`\u0027s `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.","datePublished":"Jun 19, 2026, 6:19:03 PM","dateUpdated":"Jun 22, 2026, 3:05:46 PM","baseScore":5.5,"baseScoreVersion":"4.0","baseScoreVector":"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","references":"https://github.com/microsoft/kiota-typescript/security/advisories/GHSA-396q-4vc8-28x9\nhttps://github.com/microsoft/kiota-typescript/commit/09f8bd9b34d68bf412a9b78f6ca7e7961ef14974\n","aliases":"CVE-2026-49336\nGHSA-396q-4vc8-28x9\n","assigner":"GitHub_M","epss":0.75,"enisaIdProduct":[{"id":"fd84e5fa-248a-3784-9cf8-044112c0599c","product":{"name":"kiota-typescript","vendor":{"name":"Microsoft"}},"product_version":"1.0.0-preview.97, \u003c 1.0.0-preview.102"}],"enisaIdVendor":[{"id":"a5735299-2b6f-3aea-aa09-14aad29c5813","vendor":{"name":"Microsoft"}}],"enisaIdVulnerability":[{"id":"3f29fb74-1b4b-3718-b783-fa507f51105d","vulnerability":{"id":"CVE-2026-49336","description":"@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`\u0027s `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.","datePublished":"Jun 19, 2026, 6:19:03 PM","dateUpdated":"Jun 22, 2026, 3:05:46 PM","status":"PUBLISHED","baseScore":5.5,"baseScoreVersion":"4.0","baseScoreVector":"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","references":"https://github.com/microsoft/kiota-typescript/security/advisories/GHSA-396q-4vc8-28x9\nhttps://github.com/microsoft/kiota-typescript/commit/09f8bd9b34d68bf412a9b78f6ca7e7961ef14974\n","enisa_id":"EUVD-2026-38061\n","assigner":"GitHub_M","epss":0.75,"dataProcessed":"Oct 30, 2026, 7:18:58 AM","vulnerabilityProduct":[{"id":"40b85de6-9f89-342d-ba6d-f3ca32aa89c4","product":{"name":"kiota-typescript","vendor":{"name":"Microsoft"}},"product_version":"1.0.0-preview.97, \u003c 1.0.0-preview.102"}],"vulnerabilityVendor":[{"id":"d40f005d-a9b3-36fd-a3cd-ddd4666aa17f","vendor":{"name":"Microsoft"}}]}},{"id":"40674ae0-31de-311b-95a6-ef0c063ec4db","vulnerability":{"id":"GHSA-396q-4vc8-28x9","description":"@microsoft/kiota-http-fetchlibrary: Bearer token and Cookie leak across origin on redirect due to case-mismatched scrub in fetchRequestAdapter","datePublished":"Jun 26, 2026, 10:23:11 PM","dateUpdated":"Jun 26, 2026, 10:23:11 PM","baseScore":0.0,"references":"https://github.com/microsoft/kiota-typescript/security/advisories/GHSA-396q-4vc8-28x9\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-49336\nhttps://github.com/microsoft/kiota-typescript/commit/09f8bd9b34d68bf412a9b78f6ca7e7961ef14974\nhttps://github.com/microsoft/kiota-typescript\n","enisa_id":"EUVD-2026-38061\n","aliases":"GHSA-396q-4vc8-28x9\nCVE-2026-49336\n","epss":0.0,"dataProcessed":"Oct 25, 2026, 1:57:08 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}}],"enisaIdAdvisory":[]}