CVE-2026-42041

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.

Severity
MEDIUM
CVSS v3
4.8
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N · source cna
Exploit chance (EPSS)
0.656%
chance of exploitation in the next 30 days
higher than 52% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationpoc
Automatableno
Technical impactpartial
Scored2026-04-24

Timeline

  1. 2026-04-24Published by the CNA17:55 UTC
  2. 2026-04-24CISA SSVC decision recordedsame day
  3. 2026-05-05GitHub advisory published (GHSA-w9j2-pvgh-6h63)11 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-w9j2-pvgh-6h63, affected packages:

PackageVulnerable versionsFixed in
npm axiosbefore 0.31.10.31.1
npm axiosfrom 1.0.0 before 1.15.11.15.1

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
axios axiosbefore 0.31.1fixed in 0.31.1from 1.0.0 before 1.15.1fixed in 1.15.10.31.11.15.1

Products and versions as NVD and the vendor that published the CVE list them.

References

41 references in total; the first 20 are shown.

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources