axios
1.21.1 · 9 Nov 2026MIT150.1M / weekRepositoryHomepagenpmAtom feed
1.21.1 is the newest release of 1.x.
In short
2 security1 new8 fixed6 internal
- Security
Config Hardening: Guarded
socketPath,params, andparamsSerializerreads with own-property checks to prevent inherited prototype values from affecting request behavior, including SSRF-sensitive paths. (#10901, #10922) - Security
Release Publishing: Switched the publish workflow to npm staged publishing for safer, auditable package releases with provenance. (#10926)
Security
22 advisories affect 1.17.0; 1.20.0 fixes them
- HighAxios: Node HTTP adapter prototype-pollution gadget allows request socket hijack via inherited createConnectionGHSA-m8m8-qj5v-23w3 · 30 Sep 2026Fixed in 1.20.0
- HighAxios: maxRedirects: 0 is not enforced by the fetch adapter, allowing redirect-based SSRFGHSA-r4gj-5m52-g5wh · 30 Sep 2026Fixed in 1.20.0
- HighAxios: ReDoS in fromDataURI data: URL parser freezes the Node event loop (DoS)GHSA-c29m-xwm3-cm6r · 30 Sep 2026Fixed in 1.20.0
- HighAxios: ReDoS (O(N²)) in shouldBypassProxy host normalization, reachable via untrusted redirect LocationGHSA-mghh-pgcx-3jjj · 30 Sep 2026Fixed in 1.20.0
- HighAxios: Prototype Pollution Gadget in axios toFormData OptionsGHSA-x97p-jq2g-jp4f · 30 Sep 2026Fixed in 1.20.0
17 more
- HighAxios: HTTP/2 adapter bypasses configured DNS lookup and proxy controlsGHSA-3pq3-5fj3-cg6v · 30 Sep 2026Fixed in 1.20.0
- HighAxios: Denial of Service via Unhandled 'error' Event in HTTP/2 ClientHttp2Session InitializationGHSA-542g-h47m-68v8 · 30 Sep 2026Fixed in 1.20.0
- HighAxios Node HTTP adapter can use an inherited proxy after interceptor config cloningGHSA-gcfj-64vw-6mp9 · 20 Jul 2026Fixed in 1.18.0
- ModerateAxios: Header Injection via Inherited headers After Minimal InterceptorGHSA-j8rh-479h-cp32 · 30 Sep 2026Fixed in 1.20.0
- ModerateAxios: Fetch Adapter Header Injection via Inherited FormData getHeadersGHSA-4hqw-qxg8-jxx2 · 30 Sep 2026Fixed in 1.20.0
- ModerateAxios: CIDR-form NO_PROXY entries are ignored, causing proxy exclusion bypass for internal IP rangesGHSA-44g4-m2mj-wpvx · 30 Sep 2026Fixed in 1.20.0
- ModerateAxios: Prototype pollution gadget in fetch adapter can alter outbound requestsGHSA-vh66-26gq-q6x8 · 30 Sep 2026Fixed in 1.20.0
- ModerateAxios: Prototype-Pollution Gadget in the Default Instance Allows Inherited Object.prototype.method to Override HTTP MethodGHSA-9fr6-4gfg-395g · 30 Sep 2026Fixed in 1.20.0
- ModerateAxios form serializer maxDepth bypass via {} metatokenGHSA-hcpx-6fm6-wx23 · 20 Jul 2026Fixed in 1.18.0
- ModerateAxios: Nested axios option objects can consume polluted prototype valuesGHSA-7q8q-rj6j-mhjq · 20 Jul 2026Fixed in 1.18.0
- ModerateAxios: HTTP/2 streamed uploads bypass `maxBodyLength`GHSA-mwf2-3pr3-8698 · 20 Jul 2026Fixed in 1.18.0
- ModerateAxios: Fetch adapter `ReadableStream` uploads bypass `maxBodyLength`GHSA-jqh4-m9w3-8hp9 · 20 Jul 2026Fixed in 1.18.0
- ModerateAxios: Prototype pollution gadgets can alter axios request constructionGHSA-mmx7-hfxf-jppx · 20 Jul 2026Fixed in 1.18.0
- ModerateAxios: NO_PROXY bypass for 0.0.0.0 local addresses in axiosGHSA-f4gw-2p7v-4548 · 20 Jul 2026Fixed in 1.18.0
- ModerateAxios: Excessive recursion in formDataToJSON can cause denial of serviceGHSA-42h9-826w-cgv3 · 20 Jul 2026Fixed in 1.18.0
- ModerateAxios: Prototype pollution auth subfields can inject Basic authGHSA-xj6q-8x83-jv6g · 20 Jul 2026Fixed in 1.18.0
- ModerateAxios: Deep formToJSON Key Recursion Can Cause Denial of ServiceGHSA-pmv8-rq9r-6j72 · 20 Jul 2026Fixed in 1.18.0
Release note
This release adds Node HTTP zstd decompression, hardens config and release workflows, and fixes authentication, header, proxy, and type-handling regressions.
Security Fixes
- Security
Config Hardening: Guarded
socketPath,params, andparamsSerializerreads with own-property checks to prevent inherited prototype values from affecting request behavior, including SSRF-sensitive paths. (#10901, #10922) - Security
Release Publishing: Switched the publish workflow to npm staged publishing for safer, auditable package releases with provenance. (#10926)
New Features
HTTP Compression: Added Node HTTP adapter support for zstd response decompression, with
transitional.advertiseZstdAcceptEncodingcontrolling whetherzstdis advertised inAccept-Encoding. (#6792, #10920)
Bug Fixes
Authentication Handling: Restored Basic auth on same-origin Node redirects while continuing to strip credentials cross-origin, and aligned the fetch adapter with HTTP adapter behavior for URL-embedded Basic auth. (#10929, #10896)
Proxy TLS: Preserved user
httpsAgentTLS options when tunneling HTTPS requests through HTTP CONNECT proxies. (#10957)React Native FormData: Cleared default
Content-Typefor React NativeFormDataso multipart boundaries can be generated correctly. (#10898)Headers: Silently skipped empty or whitespace-only header names instead of throwing, matching parsed-header behavior and avoiding React Native response crashes. (#10875)
Request Data Merging: Preserved enumerable symbol keys when cloning plain request data through axios merge logic. (#10812)
Bundler Compatibility: Converted
resolveConfigfrom an arrow default export to a named function export to avoid webpack and Babel transform interop failures. (#10891)Types: Corrected
AxiosHeaders.toJSON()return types and updated CommonJSisCanceltypings to narrow toCanceledError<T>. (#10956, #10952)Build Tooling: Avoided emitting a null
Authorizationheader from the GitHub build helper whenGITHUB_TOKENis unset. (#10931)
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.