CVE-2026-42035 in Axios
Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.1 and 0.31.1, a prototype pollution gadget exists in the Axios HTTP adapter (lib/adapters/http.js) that allows an attacker to inject arbitrary HTTP headers into outgoing requests. The vulnerability exploits duck-type checking of the data...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, high complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Axios | Axios | < 0.31.1 ≥ 1.0.0, < 1.15.1 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.1 and 0.31.1, a prototype pollution gadget exists in the Axios HTTP adapter (lib/adapters/http.js) that allows an attacker to inject arbitrary HTTP headers into outgoing requests. The vulnerability exploits duck-type checking of the data payload, where if Object.prototype is polluted with getHeaders, append, pipe, on, once, and Symbol.toStringTag, Axios misidentifies any plain object payload as a FormData instance and calls the attacker-controlled getHeaders() function, merging the returned headers into the outgoing request. The vulnerable code resides exclusively in lib/adapters/http.js. The prototype pollution source does not need to originate from Axios itself — any prototype pollution primitive in any dependency in the application's dependency tree is sufficient to trigger this gadget. This vulnerability is fixed in 1.15.1 and 0.31.1.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-42035 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-152673-H |
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| Published | 2026-04-24 |
| Last modified | 2026-11-11 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-113: CWE-113
CWE-1321: CWE-1321
Related attack patterns (CAPEC)
CAPEC-31 Accessing/Intercepting/Modifying HTTP Cookies via CWE-113
CAPEC-34 HTTP Response Splitting via CWE-113
CAPEC-85 AJAX Footprinting via CWE-113
CAPEC-105 HTTP Request Splitting via CWE-113
CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs via CWE-1321
Show all 7
CAPEC-77 Manipulating User-Controlled Variables via CWE-1321
CAPEC-180 Exploiting Incorrectly Configured Access Control Security Levels via CWE-1321
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A prototype pollution vulnerability exists in Axios versions prior to 1.15.1 and 0.31.1, allowing attackers to inject arbitrary HTTP headers into outgoing requests.
The vulnerability exploits duck-type checking of the data payload in the Axios HTTP adapter (lib/adapters/http.js). If Object.prototype is polluted with specific methods (getHeaders, append, pipe, on), attackers can manipulate HTTP headers.
Questions
What is CVE-2026-42035?
A prototype pollution vulnerability exists in Axios versions prior to 1.15.1 and 0.31.1, allowing attackers to inject arbitrary HTTP headers into outgoing requests.
What is the CVSS score for CVE-2026-42035?
CVE-2026-42035 has CVSS 7.4 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N. EPSS: 0.4%.
Is CVE-2026-42035 actively exploited?
No confirmed active exploitation of CVE-2026-42035 as of 2026-11-12.
How do I remediate CVE-2026-42035?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2026-42035?
CVE-2026-42035 affects Axios Axios.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Axios","product":"Axios","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-11-11.