{"id":"CVE-2026-42035","published":"2026-04-24T17:38:07Z","modified":"2026-04-25T03:55:59Z","title":"Axios: Header Injection via Prototype Pollution","vendor":"axios","product":"axios","tier":"tail","description":{"text":"Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.1 and 0.31.1, a prototype pollution gadget exists in the Axios HTTP adapter (lib/adapters/http.js) that allows an attacker to inject arbitrary HTTP headers into outgoing requests. The vulnerability exploits duck-type checking of the data payload, where if Object.prototype is polluted with getHeaders, append, pipe, on, once, and Symbol.toStringTag, Axios misidentifies any plain object payload as a FormData instance and calls the attacker-controlled getHeaders() function, merging the returned headers into the outgoing request. The vulnerable code resides exclusively in lib/adapters/http.js. The prototype pollution source does not need to originate from Axios itself — any prototype pollution primitive in any dependency in the application's dependency tree is sufficient to trigger this gadget. This vulnerability is fixed in 1.15.1 and 0.31.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00424,"percentile":0.28419,"provenance":"source"},"cwes":[{"id":"CWE-113","name":"Improper Neutralization of CRLF Sequences in HTTP Headers"},{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"references":[{"url":"https://github.com/axios/axios/security/advisories/GHSA-6chq-wfr3-2hj9","tags":["x_refsource_CONFIRM"]}],"priority":{"score":10.9,"factors":[{"name":"EPSS percentile","points":5.68},{"name":"CVSS severity","points":5.18}]},"vendorSlug":"axios","affectedVersions":[{"vendor":"axios","product":"axios","versions":[">= 1.0.0, < 1.15.1","< 0.31.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-04-24T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"axios","vulnerableRanges":[">=1.0.0, <1.15.1","<0.31.1"],"patched":["1.15.1","0.31.1"],"from":["GHSA-6chq-wfr3-2hj9"],"provenance":"source"}],"summary":{"text":"Axios's Node.js and browser HTTP adapter (lib/adapters/http.js) contains a prototype-pollution gadget that misidentifies plain object request payloads as FormData and merges attacker-controlled headers into outgoing requests. An attacker who can reach the application's code path as a network-accessible party needs a prototype pollution primitive present in any dependency of the application, and the attack is highly complex to carry out, though no authentication or user interaction is required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:46Z"},"euvd":{"id":"EUVD-2026-25589","exploited":false,"provenance":"source"}}