REDHAT-BUG-2461629: High severity npm/axios vulnerability
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
axiosto a version that resolves this vulnerability.Fixed in 1.15.1 - Upgrade
Upgrade
axiosto a version that resolves this vulnerability.Fixed in 0.31.1
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2461629?
The severity of REDHAT-BUG-2461629 is rated high with a score of 7.
What is the risk associated with REDHAT-BUG-2461629?
The risk associated with REDHAT-BUG-2461629 is categorized as 33.
How do I fix REDHAT-BUG-2461629?
To fix REDHAT-BUG-2461629, upgrade the Axios library to version 1.15.1 or 0.31.1 or later.
What type of attack does REDHAT-BUG-2461629 pertain to?
REDHAT-BUG-2461629 pertains to a Prototype Pollution 'Gadget' attack affecting the Axios library.
Which versions of Axios are affected by REDHAT-BUG-2461629?
Axios versions prior to 1.15.1 and 0.31.1 are affected by REDHAT-BUG-2461629.