Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@microsoft/kiota-http-fetchlibrary

Latest version: v1.0.0-preview.115

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
npm package Publisher: microsoft-oss-releases, microsoft1es, microsoftgraph
62 Stars
43 Forks
8 Versions
1.5M Downloads
TypeScript Repo language

Scan summary

@microsoft/kiota-http-fetchlibrary was last scanned on 26 Nov 2026 at version 1.0.0-preview.115. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 8 versions; the latest was published on 26 Nov 2026.
  • Findings: No rules fired in version 1.0.0-preview.115.
  • Downloads: 1,483,191 downloads.

Versions

8 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.0-preview.115 LATEST 26 Nov 2026 No rules fired
1.0.0-preview.114 17 Nov 2026 No rules fired
1.0.0-preview.113 11 Nov 2026 No rules fired
1.0.0-preview.111 21 Oct 2026 Not shown
1.0.0-preview.110 6 Oct 2026 Not shown

No rules fired in 1.0.0-preview.115

Findings

Findings for v1.0.0-preview.115. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.0.0-preview.115; other versions have their own rules, not their own score.

Known vulnerabilities

1 CVE · last 19 Jun 2026

0 CRITICAL 0 HIGH 1 MEDIUM 0 LOW

Versions

  • ≥ 1.0.0-preview.102
  • ≥ 1.0.0-preview.97, < 1.0.0-preview.102 1 MEDIUM
  • < 1.0.0-preview.97

Vulnerabilities

  • CVE-2026-49336 Medium 19 Jun 2026 @microsoft/kiota-http-fetchlibrary: Bearer token and Cookie leak across origin on redirect due to case-mismatched scrub in fetchRequestAdapter Fixed in 1.0.0-preview.102

README

The publisher’s own README, as collected from the registry.

Microsoft Kiota HTTP - Fetch library

npm version badge

The Kiota Http Fetch Library is an implementation using the Fetch API to make requests.

A Kiota generated project will need a reference to an HTTP implementation to make calls to an API endpoint.

Read more about Kiota here.

Using the Kiota Fetch library implementations

  1. npm i @microsoft/kiota-http-fetchlibrary @microsoft/kiota-bundle @microsoft/kiota-abstractions.

Built-in middleware order

The pipelines rewrite the URL, decode query parameter names, and set the user agent first. KiotaClientFactory.create() then adds authorization if an authentication provider is supplied and the default pipeline is used. The opt-in performance pipeline adds request compression before redirects and retries. Native Fetch handles response decompression; there is no separate decompression or Sunset middleware. Node uses redirect middleware so retries apply only to the current redirect hop. Browser Fetch follows redirects itself, so a browser retry starts at the original request. Headers and body are inspected immediately before transport, including on retries.

If the original request receives a 415 Unsupported Media Type, the compression middleware can resend it without compression. It does not resend the original request if the 415 follows a redirect handled by the pipeline.

Send cookies with a custom fetch function

To send cookies to an API from a browser, configure a custom fetch function with credentials: "include" and pass it to KiotaClientFactory.create(). Use the resulting HTTP client when constructing your request adapter:

import { AnonymousAuthenticationProvider } from "@microsoft/kiota-abstractions";
import { DefaultRequestAdapter } from "@microsoft/kiota-bundle";
import { KiotaClientFactory } from "@microsoft/kiota-http-fetchlibrary";

const customFetch = (url: string, init: RequestInit) =>
    fetch(url, { ...init, credentials: "include" });

const httpClient = KiotaClientFactory.create(customFetch);
const authProvider = new AnonymousAuthenticationProvider();
const adapter = new DefaultRequestAdapter(authProvider, undefined, undefined, httpClient);

Use your API's authentication provider in place of AnonymousAuthenticationProvider when the API requires one. In browsers, cross-origin cookie requests also require the API to allow credentialed CORS requests and the cookies to have compatible attributes.

Body Inspection Handler

The BodyInspectionHandler middleware allows you to inspect HTTP request and response bodies. This is particularly useful for debugging or capturing error payloads that are not mapped in the API schema.

The handler is included in the default middleware pipeline configured by KiotaClientFactory.create().

Configuration

Body inspection is opt-in and controlled via BodyInspectionOptions. You can configure it globally on the handler or per-request by passing BodyInspectionOptions in the request options.

import { BodyInspectionOptions } from "@microsoft/kiota-http-fetchlibrary";

const bodyInspectionOptions = new BodyInspectionOptions({
    inspectRequestBody: true,
    inspectResponseBody: true,
});

// Pass per request using request configuration:
await client.users.get({
    options: [bodyInspectionOptions],
});

// Access the inspected body as an ArrayBuffer:
const responseBuffer = bodyInspectionOptions.responseBody;
Memory and Stream-Lifecycle Considerations
  • Memory / Buffering: Inspecting request and response bodies creates in-memory copies (ArrayBuffer). For large payloads or file transfers, buffering the entire body into memory increases heap usage. Only enable inspection when necessary.
  • Stream Lifecycle: In JavaScript and browser fetch implementations, ReadableStream instances are single-use and can only be consumed once.
    • Web ReadableStream and Node.js readable request bodies are buffered once and replaced with replayable bytes before the request continues downstream. This consumes the original stream so a permitted retry can reuse the inspected request body. Retry eligibility is still controlled by RetryHandler; for example, it does not retry application/octet-stream POST, PUT, or PATCH requests.
    • In the performance middleware pipeline, stream buffering requires inspectRequestBody: true. Inspection captures the gzip bytes handed to Fetch when compression succeeds, or the uncompressed bytes if the server rejects compression and the request is resent without it.
    • The captured request and response bodies are exposed as ArrayBuffer values. Callers that need another representation can construct it explicitly from those bytes.
  • Concurrent requests: Use a separate request-scoped BodyInspectionOptions instance for each request whose captured body you need to read. A handler's global options instance is shared across requests.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @microsoft/kiota-http-fetchlibrary

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229