| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-11-09 | 4.5 kB | |
| v1.21.1 source code.tar.gz | 2026-11-09 | 1.7 MB | |
| v1.21.1 source code.zip | 2026-11-09 | 2.0 MB | |
| Totals: 3 Items | 3.7 MB | 4 | |
v1.21.1 β November 9, 2026
This release raises the minimum follow-redirects version to fix a published CVE, fixes a Next.js prerendering failure caused by the response duration timer, corrects the getAdapter typings, and includes documentation corrections, new test coverage, CI runner changes and dependency updates.
π Security Fixes
- follow-redirects: Raised the
follow-redirectsrange from^1.16.0to^1.16.2to fix CVE-2026-116689 (GHSA-mrwp-f3q8-3g9p). In the vulnerable versions,sensitiveHeadersarrays from another realm were ignored and custom credentials could follow redirects. Only the Node.js HTTP adapter is affected, and there are no API changes. (#11410)
π Bug Fixes
- Response Duration:
dispatchRequestnow measuresresponse.durationwithperformance.now()and usesDate.now()only whenperformance.now()isn't available. In v1.21.0, any axios request from a Server Component failed Next.js production builds with Cache Components (cacheComponents: true), because Next.js rejectsDate.now()while prerendering. The duration is still a whole number of milliseconds, and system clock changes no longer affect it. (#11411) - TypeScript:
getAdapternow accepts an optionalconfig?: AxiosRequestConfiginindex.d.tsandindex.d.cts, matching what it does at runtime. You can now callgetAdapter('fetch', { env: { fetch: myFetch } })without a cast. (#11404)
π§ Maintenance & Chores
- Documentation Corrections: Brought the README and docs site in line with how axios actually behaves:
transformRequestruns for every method, and transformers receive(data, headers, status).responseTypeandContent-Typehave no default value.AxiosHeaders#getand#normalizeare described correctly.- Errors should be identified with
axios.isAxiosError(), not byname. - The error tables now list
ECONNREFUSEDandERR_FORM_DATA_DEPTH_EXCEEDED, and note that FormData parsing has a fixed depth limit thatmaxDepthdoesn't change. - New notes cover what
redactdoesn't scan, which adapters enforcemaxContentLength/maxBodyLength, and howformToJSON()handles field name collisions.
(#11374, #11373, #11389, #11419, #11429, #11430)
- Docs Site: Added a Partners page, a shared card design for sponsors and partners, a Namespace sponsor badge, and a blog whose first post announces HeroDevs Never-Ending Support for Axios v0. Also applied the v1.20.0/v1.21.0 release notes to the docs, and fixed internal links in the es, fr and zh translations so they keep their locale prefix. (#11390, #11399, #11400, #11412, #11401)
- Test Coverage: Added cancellation tests across the HTTP, fetch and XHR adapters. They cover
AbortSignal,CancelToken, cancelling while a request interceptor is pending, and timeout precedence. Also added tests forno_proxyedge cases inshouldBypassProxy, such as internationalized domain names, malformed CIDR and IPv4 entries, and port-qualified entries. Neither changes runtime behavior. (#11376, #11431) - CI: GitHub Actions jobs now run on Namespace runners. The npm publish job stays on GitHub-hosted runners, because npm provenance and trusted publishing (OIDC) only work there. (#11396)
- Dependencies: Updated development and tooling dependencies, including
vitestand@vitest/*(to 5.x at the root),typescript(7.x at the root),vite,rollup,eslint,playwright,@commitlint/*,@rollup/plugin-alias,@rollup/plugin-terser,body-parser,multer,serialize-javascript,fast-uri,qs,zizmorcore/zizmor-action, andfollow-redirectsin/docs. (#11383, #11375, #11372, #11345, #11392, #11387, #11386, #11385, #11391, #11388, #11395, #11421, #11422, #11426) - Release: Prepared the 1.21.1 release. (#11435)
π New Contributors
We are thrilled to welcome our new contributors. Thank you for helping improve axios:
- @Ghoscro (#11374)
- @pei711 (#11373)
- @ivanhapaz (#11399)
- @aelmanaa (#11404)
- @Aryapatel-007 (#11429, #11430)
- @umair-ghafoor-ai (#11376)
- @yxshee (#11389)
- @malinele (#11401)
- @AnantDuhan (#11431)