axios has DoS & Header Injection via Prototype Pollution Read-Side Gadgets in axios merge functions
- Severity:
- Medium
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
Related 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
You might also like:
- Tags:
- npm
- axios
Anything's wrong? Let us know Last updated on June 12, 2026


