Description
Axios versions before the fixed releases contain prototype-pollution gadgets in request config processing. If another vulnerability in the same JavaScript process has already polluted Object.prototype.transformResponse, affected Axios versions may treat that inherited value as request configuration or as an option validator.
Recommendation
Update the axios package to the latest compatible version. Followings are version details:
Affected version(s): **>= 0.19.0, < 0.31.1 >= 1.0.0, < 1.15.2** Patched version(s): **0.31.1 1.15.2**
References
Could your website be exposed too?
SmartScanner can check your website for axios Vulnerable to Credential Theft and Response Hijacking via Prototype Pollution Gadget in Config Merge and gives you actionable findings to investigate.
Start a free scanRelated Issues
- axios Vulnerable to Full Man-in-the-Middle via Prototype Pollution Gadget in `config.proxy` - CVE-2026-44494
- Axios: Authentication Bypass via Prototype Pollution Gadget in `validateStatus` Merge Strategy - CVE-2026-42041
- Axios: Invisible JSON Response Tampering via Prototype Pollution Gadget in `parseReviver` - CVE-2026-42044
- Axios: XSRF Token Cross-Origin Leakage via Prototype Pollution Gadget in `withXSRFToken` Boolean Coercion - CVE-2026-42042


