Skip to main content
VulnerabilityPublished Updated

CVE-2026-67314: Axios · Prototype pollution auth subfields can inject Basic auth

Affects axiosSource GCVE Database

0

Mentioned vulnerabilities

CVSS 6.3 Medium : upgrade to 1.18.0 when convenient.

Data as of 8 Aug 2026, 16:56 UTC

CVSS 4.0 base score
6.3Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

What to do

Upgrade axios to 1.18.0.

Affected software

ProductAffectedFixed in
npmaxiosAffected
  • >=1.15.2 <1.18.0
Fixed in
  • 1.18.0

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

Community reviews

Loading reviews…