Vulnerabilities/

@microsoft/kiota-http-fetchlibrary: Bearer token and Cookie leak across origin on redirect due to case-mismatched scrub

Severity:
Medium

Description

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

Recommendation

Update the @microsoft/kiota-http-fetchlibrary package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
@microsoft/kiota-http-fetchlibrary
Anything's wrong? Let us know Last updated on June 26, 2026