Back to CVE records
Medium 4.8Published Apr 24, 2026

CVE-2026-42041Axios: Authentication Bypass via Prototype Pollution Gadget in `validateStatus` Merge Strategy

Updated under an hour ago ()

Does this affect you?

It affects axios and 34 other products. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

CVSS
4.8 MEDIUM (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Weakness (CWE)
CWE-287, CWE-1321, CWE-915
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
GitHub_M
NVD analysis
Modified
Record last updated
Sep 10, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
axios axios
axios:axios (from the name)
from 1.0.0, < 1.15.1; before 0.31.1
CNA record
Red Hat HawtIO HawtIO 4.4.0
redhat:apache_camel_hawtio
4.4
CISA ADP
Red Hat Red Hat Data Grid 8.6.1
redhat:jboss_data_grid
8
CISA ADP
from 1780917531 not affected
CISA ADP
from 1778508956 not affected
CISA ADP
from 1783451729 not affected
CISA ADP
Red Hat Red Hat Advanced Cluster Security 4.9
redhat:advanced_cluster_security
from 1779371594 not affected
CISA ADP
from 1779841586 not affected
CISA ADP
from 1778156756 not affected
CISA ADP
from 1780590717 not affected
CISA ADP

References

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.