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.
References
| Link | Resource |
|---|---|
| https://github.com/axios/axios/security/advisories/GHSA-w9j2-pvgh-6h63 | Exploit Mitigation Vendor Advisory |
| https://github.com/axios/axios/security/advisories/GHSA-w9j2-pvgh-6h63 | Exploit Mitigation Vendor Advisory |
Configurations
Configuration 1 (hide)
|
History
27 Apr 2026, 20:07
| Type | Values Removed | Values Added |
|---|---|---|
| First Time |
Axios axios
Axios |
|
| References | () https://github.com/axios/axios/security/advisories/GHSA-w9j2-pvgh-6h63 - Exploit, Mitigation, Vendor Advisory | |
| CPE | cpe:2.3:a:axios:axios:*:*:*:*:*:node.js:*:* |
24 Apr 2026, 19:17
| Type | Values Removed | Values Added |
|---|---|---|
| References | () https://github.com/axios/axios/security/advisories/GHSA-w9j2-pvgh-6h63 - |
24 Apr 2026, 18:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-04-24 18:16
Updated : 2026-04-27 20:07
NVD link : CVE-2026-42041
Mitre link : CVE-2026-42041
CVE.ORG link : CVE-2026-42041
JSON object : View
Products Affected
axios
- axios
