{"answers":{"affected":"2 open source packages ship an affected version, including @microsoft/kiota-http-fetchlibrary.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49336 exists.","fix":"Upgrade @microsoft/kiota-http-fetchlibrary to 1.0.0-preview.102 or later.","what":"CVE-2026-49336 is a medium-severity vulnerability in microsoft kiota-typescript, published on 19 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-49336 and fix it if it is affected.\n\nWhat it is: CVE-2026-49336 is a medium-severity vulnerability in microsoft kiota-typescript, published on 19 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49336 exists.\n\nAffected packages and fixed versions:\n- @microsoft/kiota-http-fetchlibrary (npm): affected from 1.0.0-preview.97; fixed in 1.0.0-preview.102\n- @microsoft/kiota-http-fetchlibrary (npm): affected from 1.0.0-preview.97; fixed in 1.0.0-preview.102\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-49336/ (Markdown: https://insights.sbomify.com/CVE-2026-49336/index.md)","id":"CVE-2026-49336","markdown":"https://insights.sbomify.com/CVE-2026-49336/index.md","name":"CVE-2026-49336","record":{"aliases":["GHSA-396q-4vc8-28x9"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"TypeScript HTTP library","requires_auth":"none","summary":"Attackers can steal Bearer tokens and Cookies via cross-origin redirects due to a case-sensitive header scrubbing bug in the default middleware chain.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.5,"severity":"medium","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"},{"id":"CWE-178","name":"Improper Handling of Case Sensitivity"}],"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`'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. 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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"@microsoft/kiota-http-fetchlibrary: Bearer token and Cookie leak across origin on redirect due to case-mismatched scrub in fetchRequestAdapter","id":"CVE-2026-49336","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"information_disclosure","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"libde265 has an unbounded memory leak via orphaned slice headers in `read_slice_NAL`","id":"CVE-2026-49337"},"packages":[{"ecosystem":"npm","fixed":["1.0.0-preview.102"],"introduced":["1.0.0-preview.97"],"last_affected":[],"package":"@microsoft/kiota-http-fetchlibrary","purl":null,"source":"GHSA-396q-4vc8-28x9"},{"ecosystem":"npm","fixed":["1.0.0-preview.102"],"introduced":["1.0.0-preview.97"],"last_affected":[],"package":"@microsoft/kiota-http-fetchlibrary","purl":"pkg:npm/%40microsoft/kiota-http-fetchlibrary","source":"GHSA-396q-4vc8-28x9"}],"prev":{"headline":"Auth bypass in Red Hat OpenShift Container Platform 4.12","id":"CVE-2026-49332"},"products":["kiota-typescript"],"published":"2026-06-19","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-22","vendors":["microsoft"]},"summary":"Attackers can steal Bearer tokens and Cookies via cross-origin redirects due to a case-sensitive header scrubbing bug in the default middleware chain.","url":"https://insights.sbomify.com/CVE-2026-49336/"}