CVE-2026-101904

Axios: Header Injection via Inherited headers After Minimal Interceptor

Published Sep 28, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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
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

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'}

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'}

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 28, 2026, 5:49 PM
Reserved
Sep 28, 2026, 3:55 PM
Status
Awaiting Analysis
Published
Sep 28, 2026, 6:17 PM
Modified
Sep 30, 2026, 7:38 PM
Severity
Moderate
Public date
Sep 28, 2026, 5:29 PM