Security mailing lists by PureSourceCode

CVE-2026-42041

MEDIUM 6.5CVSS 3.1

Axios: Authentication Bypass via Prototype Pollution Gadget in `validateStatus` Merge Strategy

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.

Published
24 Apr 2026
Last modified
11 Nov 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-1321CWE-287CWE-915
Also known as
GHSA-w9j2-pvgh-6h63
Sources
NVDJSONOSV GHSA-w9j2-pvgh-6h63JSON

Scores

SourceScored byVersionScoreVector / decision
NVD 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) CVSS 3.1 HIGH 8.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 4.8 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 4.8 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD axios axios
cpe:2.3:a:axios:axios:*:*:*:*:*:node.js:*:*
< 0.31.1 0.31.1
NVD axios axios
cpe:2.3:a:axios:axios:*:*:*:*:*:node.js:*:*
>= 1.0.0, < 1.15.1 1.15.1
OSV npm axios >= 1.0.0, < 1.15.1 1.15.1
OSV npm axios < 0.31.1 0.31.1

References

History

  • 25 Nov 2026 21:02 UTC · NVD: first stored (published 24 Apr 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 5 May 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.