Skip to content

Update @microsoft/kiota-http-fetchlibrary to fix GHSA-396q-4vc8-28x9 Bearer token leak vulnerability #994

Description

@gavinbarron

Vulnerability Details

GHSA-396q-4vc8-28x9 in @microsoft/kiota-http-fetchlibrary: Bearer token leak across origin on HTTP redirects.

Issue

The RedirectHandler has a case-sensitivity bug in its defaultScrubSensitiveHeaders callback. Headers are normalized to lowercase in FetchRequestAdapter.getRequestFromRequestInformation, but the scrub callback attempts to delete using case-sensitive property names (Authorization, Cookie). This causes sensitive headers to be forwarded to attacker-controlled hosts across 30x redirects.

Impact

  • Bearer token leak when redirected to different host
  • Session cookie leak across origin
  • Affects all kiota-generated TypeScript SDKs using default middleware chain
  • No user interaction required; default configuration is vulnerable

Resolution

Update @microsoft/kiota-http-fetchlibrary to version 1.0.0-preview.102 or later, which contains the fix for this vulnerability.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions