
CVE catalog
CVE-2026-42041
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
- Severity
- High · CVSS 8.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.66% · Oct 27, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | node-axios | sid | 1.20.0-1 | fixed |
| Debian | node-axios | forky | 1.20.0-1 | fixed |
| Debian | node-axios | trixie | 1.8.4+dfsg-1 | vulnerable |
| Debian | node-axios | bookworm | 1.2.1+dfsg-1+deb12u1 | vulnerable |
| Cpe | node-axios | Not reported | Not reported | vulnerable |
| Cpe | axios | Not reported | 0.31.1 | fixed |
| Cpe | axios | Not reported | 1.15.1 | fixed |
| Npm | axios | Not reported | 0.31.1 | fixed |
| Cpe | axios | Not reported | 1.15.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | node-axios | source | sid | 1.15.2-1 | not yet assigned | Not reported | [1134878] |
| Debian | node-axios | source | forky | 1.15.2-1 | not yet assigned | Not reported | [1134878] |
| Debian | node-axios | source | trixie | (unfixed) | not yet assigned | Not reported | [1134878] |
| Debian | node-axios | source | bookworm | (unfixed) | not yet assigned | Not reported | [1134878] |
| Cpe | axios | cpe | Not reported | 0.31.1 | Not reported | Not reported | Not reported |
| Cpe | axios | cpe | Not reported | 1.15.1 | Not reported | Not reported | Not reported |
| Npm | axios | npm | Not reported | 0.31.1 | Not reported | GHSA-W9J2-PVGH-6H63 | Not reported |
| Cpe | axios | cpe | Not reported | 1.15.1 | Not reported | NVD-CVE-2026-42041 | Not reported |
Notes
[trixie] node-axios: Minor issue [bookworm] node-axios: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [node-axios]Affected
Details (2)
1.2.1+dfsg-1+deb12u1· all · bookwormAffected
nvd · node-axios · debian · bookworm; nvd · node-axios · debian · 12
1.2.1+dfsg-1+deb12u1· all · bookwormAffected
nvd · node-axios · debian · bookworm; nvd · node-axios · debian · 12
[Debian 13 (Trixie)]
- [node-axios]Affected
Details (2)
1.8.4+dfsg-1· all · trixieAffected
nvd · node-axios · debian · 13
1.8.4+dfsg-1· all · trixieAffected
nvd · node-axios · debian · 13
Observed:
References
- [https://access.redhat.com/errata/RHSA-2026:22629]
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_20919-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-42041]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-42041]
- [https://osv.dev/vulnerability/GHSA-w9j2-pvgh-6h63]
- [https://security-tracker.debian.org/tracker/CVE-2026-42041]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-1450.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]