Description
Axios is a promise-based HTTP client for the browser and Node.js. From 1.0.0 until 1.20.0, the dispatchRequest function normalizes inherited Object.prototype.headers from a replacement request configuration. A separate same-process prototype-pollution flaw sets Object.prototype.headers, and trusted request interceptors return a new ordinary configuration without an own headers property. After the interceptor chain, dispatchRequest resolves the inherited headers during normalization. Downstream request processing can observe attacker-controlled headers, including authorization-related values. This issue is fixed in version 1.20.0.
Published: 2026-09-28
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Header Injection
Action: Immediate Patch
AI Analysis

Impact

Axios versions 1.0.0 through 1.20.0 are vulnerable to header injection caused by prototype pollution and interceptor handling. An attacker can set Object.prototype.headers in a running process and craft interceptors that produce requests without explicit header objects. When dispatchRequest normalizes the request configuration, inherited headers are merged, allowing attacker‑controlled headers—including Authorization—to reach the network layer. This can enable credential theft, session hijacking, or unauthorized API calls. The flaw is an injection vulnerability stemming from improper validation of request headers (CWE‑74, CWE‑1321, CWE‑915).

Affected Systems

Axios (axios) 1.0.0‑1.20.0 is affected. The vulnerability exists in the dispatchRequest function used by all Axios clients that employ request interceptors and rely on the default prototype chain for headers.

Risk and Exploitability

The CVSS score of 6.9 classifies the vulnerability as medium severity. EPSS score of 0.00428 (<1%) indicates a very low likelihood of exploitation, and the issue is not present in the CISA KEV catalog. An exploit requires the ability to execute JavaScript in the same process that runs Axios, which is generally limited to trusted or compromised code paths. If an attacker can tamper with Object.prototype.headers or inject malicious interceptors, they can inject arbitrary request headers, potentially overriding authentication credentials.

Generated by OpenCVE AI on September 30, 2026 at 04:45 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Axios to version 1.20.0 or later.
  • If upgrading is not possible, audit the code base to ensure no modification of Object.prototype.headers and that all request interceptors explicitly create and return a headers object, preventing prototype inheritance.
  • Implement header validation in dispatchRequest to reject or sanitize headers containing sensitive values such as Authorization before they are sent.

Generated by OpenCVE AI on September 30, 2026 at 04:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-j8rh-479h-cp32 Axios: Header Injection via Inherited headers After Minimal Interceptor
History

Tue, 29 Sep 2026 13:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-915
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N'}

threat_severity

Moderate


Mon, 28 Sep 2026 18:30:00 +0000

Type Values Removed Values Added
First Time appeared Axios
Axios axios
Vendors & Products Axios
Axios axios
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 28 Sep 2026 17:45:00 +0000

Type Values Removed Values Added
Description Axios is a promise-based HTTP client for the browser and Node.js. From 1.0.0 until 1.20.0, the dispatchRequest function normalizes inherited Object.prototype.headers from a replacement request configuration. A separate same-process prototype-pollution flaw sets Object.prototype.headers, and trusted request interceptors return a new ordinary configuration without an own headers property. After the interceptor chain, dispatchRequest resolves the inherited headers during normalization. Downstream request processing can observe attacker-controlled headers, including authorization-related values. This issue is fixed in version 1.20.0.
Title Axios: Header Injection via Inherited headers After Minimal Interceptor
Weaknesses CWE-1321
CWE-74
References
Metrics cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:H/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-28T17:49:57.529Z

Reserved: 2026-09-28T15:55:37.907Z

Link: CVE-2026-101904

cve-icon Vulnrichment

Updated: 2026-09-28T17:49:50.927Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-28T18:17:18.740

Modified: 2026-09-30T19:38:27.293

Link: CVE-2026-101904

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-28T17:29:10Z

Links: CVE-2026-101904 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-30T04:45:19Z

Weaknesses
  • CWE-1321

    Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

  • CWE-915

    Improperly Controlled Modification of Dynamically-Determined Object Attributes