CVE-2026-67314: axios before 1.18.0 Prototype Pollution via auth subfields
axios versions >=1.15.2 and <1.18.0 contain prototype-pollution read-side gadgets in Basic auth subfield handling (lib/adapters/http.js and lib/helpers/resolveConfig.js). When an application is already affected by a separate prototype-pollution primitive and makes an axios request with an own auth object that omits the username and/or password properties, axios reads the inherited Object.prototype.username and Object.prototype.password values and uses them to construct an outbound 'Authorization: Basic ...' header. axios itself does not pollute prototypes. The practical impact is outbound request tampering: an attacker who controls the polluted prototype values can inject attacker-chosen Basic auth credentials or replace an existing Authorization header. Credential disclosure is only possible under additional application-specific conditions.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
axiosto a version that resolves this vulnerability.Fixed in 1.18.0 - Compensating control
Ensure applications do not invoke axios with an auth object that omits the username and/or password properties when prototype-pollution conditions may be present (so axios cannot read inherited Object.prototype.username/Object.prototype.password to construct an outbound 'Authorization: Basic ...' header).
Event History
Frequently Asked Questions
What is the severity of CVE-2026-67314?
CVE-2026-67314 has a medium severity rating of 6.3 on the CVSS scale.
How do I fix CVE-2026-67314?
To mitigate CVE-2026-67314, upgrade axios to version 1.18.0 or later.
What is the risk associated with CVE-2026-67314?
CVE-2026-67314 has a risk rating of 37, indicating potential security vulnerabilities related to prototype pollution.
Which versions of axios are affected by CVE-2026-67314?
CVE-2026-67314 affects axios versions greater than or equal to 1.15.2 and less than 1.18.0.
What type of vulnerability is CVE-2026-67314?
CVE-2026-67314 is a prototype pollution vulnerability found in the Basic auth subfield handling of axios.