Vulnerabilities/

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:

  1. Header injection - lib/utils.js line 406 builds merge()’s accumulator as result = {}, so result[targetKey] (line 414) walks Object.prototype and 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:

References

Related Issues

Tags:
npm
axios
Anything's wrong? Let us know Last updated on June 12, 2026