Description
axios 1.15.2 exposes two read-side prototype-pollution gadgets. When Object.prototype is polluted by an upstream dependency in the same process (e.g. lodash _.merge / CVE-2018-16487), axios silently picks up the polluted values:
- Header injection -
lib/utils.jsline 406 buildsmerge()’s accumulator asresult = {}, soresult[targetKey](line 414) walksObject.prototypeand the polluted bucket’s own keys are copied into the merged headers and ride out on the wire. 2.
Recommendation
Update the axios package to the latest compatible version. Followings are version details:
Affected version(s): **<= 0.31.1 >= 1.0.0, < 1.16.0** Patched version(s): **0.32.0 1.16.0**
References
Could your website be exposed too?
SmartScanner can check your website for axios has DoS & Header Injection via Prototype Pollution Read-Side Gadgets in axios merge functions and gives you actionable findings to investigate.
Start a free scanRelated Issues
- Axios has prototype pollution read-side gadgets in HTTP adapter that allow credential injection and request hijacking - CVE-2026-42264
- Axios has a Patch Bypass: Proxy-Authorization Header Injection via Prototype Pollution — Incomplete Null-Prototype Fix - CVE-2026-44489
- Axios: Header Injection via Prototype Pollution - CVE-2026-42035
- Axios: Authentication Bypass via Prototype Pollution Gadget in `validateStatus` Merge Strategy - CVE-2026-42041


