CVE-2026-42041 in Axios
Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.1 and 0.31.1, the Axios library is vulnerable to a Prototype Pollution "Gadget" attack that allows any Object.prototype pollution to silently suppress all HTTP error responses (401, 403, 500, etc.), causing them to be treated as successf...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, 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, the Axios library is vulnerable to a Prototype Pollution "Gadget" attack that allows any Object.prototype pollution to silently suppress all HTTP error responses (401, 403, 500, etc.), causing them to be treated as successful responses. This completely bypasses application-level authentication and error handling. The root cause is that validateStatus is the only config property using the mergeDirectKeys merge strategy, which uses JavaScript's in operator — an operator that inherently traverses the prototype chain. When Object.prototype.validateStatus is polluted with () => true, all HTTP status codes are accepted as success. This vulnerability is fixed in 1.15.1 and 0.31.1.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-42041 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-152676-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| Published | 2026-04-24 |
| Last modified | 2026-11-11 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-287: Improper Authentication
Software does not prove or insufficiently proves that the user is who they claim to be.
CWE-915: CWE-915
CWE-1321: CWE-1321
Related attack patterns (CAPEC)
CAPEC-57 Utilizing REST's Trust in the System Resource to Obtain Sensitive Data via CWE-287
CAPEC-633 Token Impersonation via CWE-287
CAPEC-650 Upload a Web Shell to a Web Server via CWE-287
CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs via CWE-1321
CAPEC-77 Manipulating User-Controlled Variables via CWE-1321
Show all 13
CAPEC-180 Exploiting Incorrectly Configured Access Control Security Levels via CWE-1321
CAPEC-194 Fake the Source of Data via CWE-287
CAPEC-593 Session Hijacking via CWE-287
CAPEC-22 Exploiting Trust in Client via CWE-287
CAPEC-94 Adversary in the Middle (AiTM) via CWE-287
CAPEC-114 Authentication Abuse via CWE-287
CAPEC-115 Authentication Bypass via CWE-287
CAPEC-151 Identity Spoofing via CWE-287
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
Axios library versions prior to 1.15.1 and 0.31.1 are vulnerable to a Prototype Pollution attack that can suppress HTTP error responses, bypassing application-level authentication and error handling.
The vulnerability arises from improper handling of user-supplied input, allowing attackers to manipulate Object.prototype, which can lead to the suppression of HTTP error responses, making them appear as successful responses.
Questions
What is CVE-2026-42041?
Axios library versions prior to 1.15.1 and 0.31.1 are vulnerable to a Prototype Pollution attack that can suppress HTTP error responses, bypassing application-level authentication and error handling.
What is the CVSS score for CVE-2026-42041?
CVE-2026-42041 has CVSS 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N. EPSS: 1.1%.
Is CVE-2026-42041 actively exploited?
No confirmed active exploitation of CVE-2026-42041 as of 2026-11-12.
How do I remediate CVE-2026-42041?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2026-42041?
CVE-2026-42041 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.