Description
Axios is a promise based HTTP client for the browser and Node.js. From version 1.0.0 to before version 1.15.2, fFive config properties (auth, baseURL, socketPath, beforeRedirect, and insecureHTTPParser) in the HTTP adapter are read via direct property access without hasOwnProperty guards, making them exploitable as prototype pollution gadgets. When Object.prototype is polluted by another dependency in the same process, axios silently picks up these polluted values on every outbound HTTP request. This issue has been patched in version 1.15.2.
Problem types
CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Product status
References
github.com/.../axios/security/advisories/GHSA-q8qp-cvcw-x6jj
github.com/.../axios/security/advisories/GHSA-q8qp-cvcw-x6jj
github.com/axios/axios/pull/10779
github.com/...ommit/47915144662f2733e6c051bdcb895a8c8f0586aa
github.com/axios/axios/releases/tag/v1.15.2