REDHAT-BUG-2461624: High severity npm/axios vulnerability
Axios is a promise based HTTP client for the browser and Node.js. From 1.0.0 to before 1.15.2, he Axios library is vulnerable to a Prototype Pollution "Gadget" attack that allows any Object.prototype pollution in the application's dependency tree to be escalated into surgical, invisible modification of all JSON API responses — including privilege escalation, balance manipulation, and authorization bypass. The default transformResponse function at lib/defaults/index.js:124 calls JSON.parse(data, this.parseReviver), where this is the merged config object. Because parseReviver is not present in Axios defaults, not validated by assertOptions, and not subject to any constraints, a polluted Object.prototype.parseReviver function is called for every key-value pair in every JSON response, allowing the attacker to selectively modify individual values while leaving the rest of the response intact. This vulnerability is fixed in 1.15.2.
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.2
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2461624?
The severity of REDHAT-BUG-2461624 is high with a score of 7.
How do I fix REDHAT-BUG-2461624?
To fix REDHAT-BUG-2461624, update the Axios library to version 1.15.2 or later.
What type of vulnerability is REDHAT-BUG-2461624?
REDHAT-BUG-2461624 describes a Prototype Pollution vulnerability in the Axios library.
What versions of Axios are affected by REDHAT-BUG-2461624?
REDHAT-BUG-2461624 affects Axios versions from 1.0.0 to just before 1.15.2.
What is the impact of REDHAT-BUG-2461624?
The impact of REDHAT-BUG-2461624 includes the potential for surgical, invisible modifications through Object.prototype pollution.