All vulnerabilities

npm

CVE-2026-101900

Axios: Fetch Adapter Header Injection via Inherited FormData getHeaders

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 46% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Prototype pollution (CWE-1321)Protection mechanism failure (CWE-693)Injection (CWE-74)
Also known as
GHSA-4hqw-qxg8-jxx2
Sources
OSV.dev and GitHub

Description

Axios contains a guard in the Node HTTP adapter to avoid using an inherited Object.prototype.getHeaders as a FormData header source. The fetch adapter calls the shared resolveConfig() helper before dispatch, and that helper lacks the same guard. If another vulnerability pollutes Object.prototype with FormData-like properties and getHeaders(), the fetch adapter can merge attacker-controlled headers into the outbound request.

Axios does not create the prototype pollution source. This is a read-side gadget in the fetch adapter configuration path.

An attacker with a prior same-process prototype-pollution primitive can inject headers into fetch-adapter requests. Depending on the target service, this may affect authorization, metadata-service access, cache behavior, conditional request handling, or other application-specific header logic.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Workarounds

Use the Node HTTP adapter for server-side requests that may run in a polluted process. Avoid passing array or class-instance bodies through the fetch adapter when prototype pollution is suspected.

Original report

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
axiosnpm · osv:npm:axios
  • From 1.12.0 before 1.20.0

About axios

Weekly downloads (npm)
143,624,637npm, 16 Nov 2026

References