axios
1.21.1 · 9 Nov 2026MIT150.1M / weekRepositoryHomepagenpmAtom feed
Upgrading axios From 0.32.0 to 0.34.0
2 releases in betweenevery note read
Before you upgrade
Tick each one off as you go- Breaking0.34.0
- Breaking0.34.0
Security
Fixes 9 advisories affecting 0.32.0
- Axios: Excessive recursion in formDataToJSON can cause denial of servicemoderate · GHSA-42h9-826w-cgv3
- Axios: Nested axios option objects can consume polluted prototype valuesmoderate · GHSA-7q8q-rj6j-mhjq
- Axios: Prototype-Pollution Gadget in the Default Instance Allows Inherited Object.prototype.method to Override HTTP Methodmoderate · GHSA-9fr6-4gfg-395g
- Axios: NO_PROXY bypass for 0.0.0.0 local addresses in axiosmoderate · GHSA-f4gw-2p7v-4548
- Axios Node HTTP adapter can use an inherited proxy after interceptor config cloninghigh · GHSA-gcfj-64vw-6mp9
- Axios form serializer maxDepth bypass via {} metatokenmoderate · GHSA-hcpx-6fm6-wx23
- Axios: Prototype pollution gadgets can alter axios request constructionmoderate · GHSA-mmx7-hfxf-jppx
- Axios: Deep formToJSON Key Recursion Can Cause Denial of Servicemoderate · GHSA-pmv8-rq9r-6j72
- Axios: Prototype Pollution Gadget in axios toFormData Optionshigh · GHSA-x97p-jq2g-jp4f
- 0.34.0
Request Configuration: Prevent inherited properties from influencing form serializer options, default request methods, headers on interceptor-returned configs, and HTTP redirect hooks. Applications relying on inherited options must define those values as own properties.
- 0.34.0
Hostname Processing: Replace quadratic regular-expression backtracking in proxy bypass hostname normalization with a linear scan, preventing excessive processing of crafted redirect hostnames.
- 0.33.0
Request Config Hardening: Uses own-property reads for nested request options affecting auth, params, proxy, and data handling; adds bounded form serialisation depth checks; normalises nullish Basic Auth credentials; and treats
0.0.0.0as local for proxy bypass. (#11001)
Release by release
- Security
Request Configuration: Prevent inherited properties from influencing form serializer options, default request methods, headers on interceptor-returned configs, and HTTP redirect hooks. Applications relying on inherited options must define those values as own properties.
- Security
Hostname Processing: Replace quadratic regular-expression backtracking in proxy bypass hostname normalization with a linear scan, preventing excessive processing of crafted redirect hostnames.
- Breaking
Header Types: TypeScript now rejects header values that are Promises, functions, or objects with custom toString() methods. Resolve promises, call functions, or explicitly convert objects before assigning header values. Supported scalar, array, and grouped headers remain available.
- Breaking
Proxy Routing: NO_PROXY / no_proxy entries now support IPv4 and IPv6 CIDR ranges. Previously ineffective ranges now cause matching IP destinations to bypass the proxy; review existing ranges when upgrading.
- Security
- Security
Request Config Hardening: Uses own-property reads for nested request options affecting auth, params, proxy, and data handling; adds bounded form serialisation depth checks; normalises nullish Basic Auth credentials; and treats
0.0.0.0as local for proxy bypass. (#11001) - New
Node.js 26: Adds Node.js 26 to the v0.x CI and release/publish matrices. (#10937)
- Security
6 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.