Prototype pollution in axios - #VU127605
Published: April 24, 2026
axios
Detailed vulnerability description
The vulnerability allows a remote attacker to tamper with requests or responses and disclose sensitive information.
The vulnerability exists due to prototype pollution in mergeConfig handling of transformRequest and transformResponse when reading inherited config values from a polluted Object.prototype. A remote attacker can pollute Object.prototype.transformRequest or Object.prototype.transformResponse to tamper with requests or responses and disclose sensitive information.
This gadget requires a discriminator because the polluted function is also reached during option validation.