CVE-2026-101902: Axios: Prototype-Pollution Gadget in the Default Instance Allows Inherited Object.prototype.method to Override HTTP Method
Axios default-instance requests that omit an explicit method can read an inherited method value from Object.prototype. If another vulnerability in the same process pollutes Object.prototype.method, calls such as axios.request({ url }) and axios({ url }) can send a state-changing HTTP method instead of the expected default GET.
Axios does not create the prototype pollution source. This is a read-side gadget in axios request dispatch.
Axios 1.17.0 contains a read-side prototype-pollution gadget in the default Axios instance. If another vulnerability in the same Node.js process pollutes Object.prototype.method, default-instance calls such as axios.request({ url }) and axios({ url }) can be forced to use an attacker-controlled HTTP method, such as DELETE, instead of the expected default GET.
Axios does not create the prototype pollution by itself. The issue is that Axios reads fallback values from this.defaults without an own-property guard, allowing inherited values from Object.prototype to influence request behavior.
This should be treated as a prototype-pollution gadget, not as a standalone prototype-pollution source. In other words, Axios is not the component that lets the attacker write to Object.prototype; Axios is the component that becomes dangerous after Object.prototype has already been polluted by another bug in the same process.
References
- github.com/advisories/GHSA-9fr6-4gfg-395g
- github.com/axios/axios/commit/d19040bda7a8be2f82c3c6e1a5bc03917daee39a
- github.com/axios/axios/pull/11141
- github.com/axios/axios/releases/tag/v0.34.0
- github.com/axios/axios/releases/tag/v1.20.0
- github.com/axios/axios/security/advisories/GHSA-9fr6-4gfg-395g
- nvd.nist.gov/vuln/detail/CVE-2026-101902
Code Behaviors & Features
Detect and mitigate CVE-2026-101902 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →