npm
CVE-2026-101908
Axios: Prototype pollution gadget in fetch adapter can alter outbound requests
- Severity
- Medium
- Published
- 30 Sept 2026
- Last changed
- 30 Sept 2026
- Added to UpHeron
- 22 Oct 2026
- Fixed in
- 1.20.0
- Exploit chance
- 0.5% in the next 30 daysHigher than 41% of CVEs. EPSS by FIRST, 19 Nov 2026
- Weakness
- Prototype pollution (CWE-1321)
- Also known as
- GHSA-vh66-26gq-q6x8
- Sources
- OSV.dev and GitHub
Description
Axios fetch adapter requests can be altered by inherited properties on fetchOptions. The adapter resolves method, headers, body, signal, and credentials into resolvedOptions, creates a Request, and then calls fetch(request, fetchOptions) instead of fetch(request, resolvedOptions). In runtimes such as Node's undici-backed fetch, inherited fetchOptions.headers can override the headers already placed on the Request.
Axios does not create the prototype pollution source. This is a read-side gadget that becomes exploitable after same-process prototype pollution.
An attacker with a prior prototype-pollution primitive can cause affected fetch-adapter requests to send attacker-controlled headers and drop caller-specified headers. This can affect authorization, cache behavior, metadata-service interactions, or application-specific header-based controls.
The issue is specific to fetch-adapter behavior and does not affect Node HTTP adapter requests.
lib/adapters/fetch.js builds:
Workarounds
Use the Node HTTP adapter for security-sensitive server-side requests until fixed. If the fetch adapter must be used, avoid passing empty fetchOptions objects in processes where prototype pollution is possible, and set explicit safe own values for fetch init fields.
Original report
Hello, I’m not completely sure if this is something you’d consider a security issue, since it depends on prototype pollution happening somewhere else first, but I wanted to report it just in case.
Affected software
| Software | Affected versions |
|---|---|
axiosnpm · osv:npm:axios |
|
About axios
- Weekly downloads (npm)
- 143,624,637npm, 16 Nov 2026
Vulnerabilities in axios
- In our list
- 35
- Published in the last 12 months
- 35
- Critical, last 12 months
- 0
- High, last 12 months
- 13
- Known exploited
- 0
- CVE-2026-101904Axios: Header Injection via Inherited headers After Minimal InterceptorMedium 30 Sept 2026
- CVE-2026-101900Axios: Fetch Adapter Header Injection via Inherited FormData getHeadersMedium 30 Sept 2026
- CVE-2026-101902Axios: Prototype-Pollution Gadget in the Default Instance Allows Inherited Object.prototype.method to Override HTTP MethodMedium 30 Sept 2026
- CVE-2026-101898Axios: HTTP/2 adapter bypasses configured DNS lookup and proxy controlsHigh 30 Sept 2026
- CVE-2026-101901Axios: Denial of Service via Unhandled 'error' Event in HTTP/2 ClientHttp2Session InitializationHigh 30 Sept 2026
- CVE-2026-67319Axios: Nested axios option objects can consume polluted prototype valuesMedium 20 Jul 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-101908
- GitHub Advisory Database https://github.com/advisories/GHSA-vh66-26gq-q6x8