Description
Axios is a promise based HTTP client for the browser and Node.js. From 1.0.0 to before 1.16.0, the 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 a full Man-in-the-Middle (MITM) attack — intercepting, reading, and modifying all HTTP traffic including authentication credentials. The HTTP adapter at lib/adapters/http.js:670 reads config.proxy via standard property access, which traverses the prototype chain. Because proxy is not present in Axios defaults, the merged config object has no own proxy property, making it trivially injectable via prototype pollution. Once injected, setProxy() routes all HTTP requests through the attacker's proxy server. This vulnerability is fixed in 1.16.0.
Remediation
References
Related Vulnerabilities
WordPress Plugin SEO Backlinks Cross-Site Request Forgery (4.0.1)
WordPress Plugin WordPress Meta Robots SQL Injection (2.1)
Drupal Core 7.x Multiple Vulnerabilities (7.0 - 7.37)
WordPress Plugin WP Statistics Cross-Site Scripting (13.0.9)
WordPress Plugin Telefication Server-Side Request Forgery (1.8.0)