CVE-2026-67314: Axios · Prototype pollution auth subfields can inject Basic auth
Affects axiosSource GCVE Database
Mentioned vulnerabilities
CVSS 6.3 Medium : upgrade to 1.18.0 when convenient.
Data as of 8 Aug 2026, 16:56 UTC
- Patch
- Available – fixed in 1.18.0
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:NWhat to do
Upgrade axios to 1.18.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmaxios | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available for this vulnerability; users should upgrade axios to a version >=1.18.0 where the issue is patched. Until then, avoid passing empty or partial auth objects to axios requests. Applications should sanitize and filter untrusted input to prevent prototype pollution, especially filtering __proto__, constructor, and prototype properties. When merging user options, use own-property checks rather than fallback patterns like opts.auth || {}. Wrappers should use null-prototype objects or explicitly copy only own properties for auth objects. Check the official axios advisory or repository for the confirmed patched versions and upgrade guidance.
Description
Axios versions from 1.15.2 up to but not including 1.18.0 contain a prototype pollution read-side vulnerability affecting Basic auth subfield handling. If an attacker can pollute Object.prototype with username or password properties and the host application makes an axios request with an auth object missing these own properties, axios will inherit and use the polluted values to construct the Authorization header. This can lead to outbound request tampering by injecting attacker-controlled Basic auth credentials or causing authorization failures. Exploitation requires a separate prototype pollution vulnerability in the host environment and specific axios usage patterns. The vulnerability does not directly leak credentials from axios itself. A fix is available for this issue.
References
- github.com/axios/axios/security/advisories/GHSA-xj6q-8x83-jv6g (opens in a new tab)
- github.com/axios/axios/pull/11000 (opens in a new tab)
- github.com/axios/axios/commit/32fc489632377d214db55bfa4e2c48486a7d7ce2 (opens in a new tab)
- github.com/axios/axios (opens in a new tab)
- github.com/axios/axios/releases/tag/v1.18.0 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-67314 (opens in a new tab)
- vulncheck.com/advisories/axios-before-prototype-pollution-via-auth-subfields (opens in a new tab)