Scan your whole stack
Are you using @microsoft/kiota-http-fetchlibrary?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.0.0-preview.115
@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.
| Version | Published | Status |
|---|---|---|
| 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 |
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.
0 CRITICAL 0 HIGH 1 MEDIUM 0 LOW
The publisher’s own README, as collected from the registry.
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.
npm i @microsoft/kiota-http-fetchlibrary @microsoft/kiota-bundle @microsoft/kiota-abstractions.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.
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.
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().
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;
ArrayBuffer). For large payloads or file transfers, buffering the entire body into memory increases heap usage. Only enable inspection when necessary.ReadableStream instances are single-use and can only be consumed once.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.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.ArrayBuffer values. Callers that need another representation can construct it explicitly from those bytes.BodyInspectionOptions instance for each request whose captured body you need to read. A handler's global options instance is shared across requests.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.
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.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.