Upgrading axios 0.31 to 0.32
Breaking0.31.1 → 0.32.0Breaking1Security11New1Other1
SecurityHigh · CVSS 8.6axios's shouldBypassProxy does not recognize IPv4-mapped IPv6 addresses, allowing NO_PROXY bypass (incomplete fix for CVE-2025-62718)GHSA-pjwm-pj3p-43mv · CVE-2026-44492 ↗
BreakingUpgrade verdict
1 breaking change and 5 security fixes.
In plain terms
- Merged configuration and header objects no longer inherit from Object.prototype, so code that relied on inherited methods or implicit string coercion may behave differently.
- axios's shouldBypassProxy does not recognize IPv4-mapped IPv6 addresses, allowing NO_PROXY bypass (incomplete fix for CVE-2025-62718)
- Axios: Proxy-Authorization Credential Leak to Origin Server Across HTTP-to-HTTPS Redirect in Axios Node.js HTTP Adapter
- axios has DoS & Header Injection via Prototype Pollution Read-Side Gadgets in axios merge functions
Must act Top 4 of 6 that need code or config changes
What you must change
Breaking1
mergeConfig and header merging now return null-prototype objects to block prototype-pollution gadgets.
mergeConfigObject.prototype.hasOwnProperty.callSecurity5
axios's shouldBypassProxy does not recognize IPv4-mapped IPv6 addresses, allowing NO_PROXY bypass (incomplete fix for CVE-2025-62718)
NO_PROXYAxiosURLSearchParamsProxy-AuthorizationsocketPathallowedSocketPathswithXSRFTokenAxiosError.toJSON()config.redactdefaults.redactHigh · CVSS 8.6Axios: Proxy-Authorization Credential Leak to Origin Server Across HTTP-to-HTTPS Redirect in Axios Node.js HTTP Adapter
Highaxios has DoS & Header Injection via Prototype Pollution Read-Side Gadgets in axios merge functions
Moderate · CVSS 4.8Axios: Regular Expression Denial of Service (ReDoS) via Cookie Name Injection
High · CVSS 7.5Axios: Proxy-Authorization header leaks to redirect target when proxy is re-evaluated to direct connection
High · CVSS 7.5API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- added:
property AxiosRequestConfig.allowedSocketPaths?: string | string[] | null - added:
property AxiosRequestConfig.formDataHeaderPolicy?: 'legacy' | 'content-only' - added:
property AxiosRequestConfig.redact?: string[]