PT-2026-35050 · Npm · Axios
Published
2026-04-24
·
Updated
2026-04-24
·
CVE-2026-42041
CVSS v3.1
4.8
Medium
| AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
Axios versions prior to 1.15.1
Axios versions prior to 0.31.1
Description
The library is susceptible to a Prototype Pollution Gadget attack. This occurs because the
validateStatus configuration property utilizes the mergeDirectKeys merge strategy, which employs the JavaScript in operator that traverses the prototype chain. If Object.prototype.validateStatus is polluted with () => true, all HTTP error responses (such as 401, 403, and 500) are treated as successful responses, effectively bypassing application-level authentication and error handling.Recommendations
Update to version 1.15.1 or later.
Update to version 0.31.1 or later.
Exploit
Fix
Improper Authentication
Prototype Pollution
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Axios