axios
1.21.1 · 9 Nov 2026MIT150.1M / weekRepositoryHomepagenpmAtom feed
Upgrading axios From 1.15.2 to 1.16.0
1 release in betweenevery note read
- 0
- changes to make
- 8
- advisories fixed
- 3
- new
- 8
- fixes
Security
20 advisories still affect 1.16.0
- Axios: HTTP/2 adapter bypasses configured DNS lookup and proxy controlshigh · GHSA-3pq3-5fj3-cg6v
- Axios: Excessive recursion in formDataToJSON can cause denial of servicemoderate · GHSA-42h9-826w-cgv3
- Axios: CIDR-form NO_PROXY entries are ignored, causing proxy exclusion bypass for internal IP rangesmoderate · GHSA-44g4-m2mj-wpvx
Upgrading to 1.20.0 clears them.
Fixes 8 advisories affecting 1.15.2
- axios Vulnerable to Full Man-in-the-Middle via Prototype Pollution Gadget in `config.proxy`high · GHSA-35jp-ww65-95wh
- Axios has a Patch Bypass: Proxy-Authorization Header Injection via Prototype Pollution — Incomplete Null-Prototype Fixlow · GHSA-654m-c8p4-x5fp
- Allocation of Resources Without Limits or Throttling in Axioshigh · GHSA-777c-7fjr-54vf
- axios has DoS & Header Injection via Prototype Pollution Read-Side Gadgets in axios merge functionsmoderate · GHSA-898c-q2cr-xwhg
- Axios: Regular Expression Denial of Service (ReDoS) via Cookie Name Injectionhigh · GHSA-hfxv-24rg-xrqf
- Axios: Proxy-Authorization header leaks to redirect target when proxy is re-evaluated to direct connectionhigh · GHSA-j5f8-grm9-p9fc
- Axios: Proxy-Authorization Credential Leak to Origin Server Across HTTP-to-HTTPS Redirect in Axios Node.js HTTP Adapterhigh · GHSA-p92q-9vqr-4j8v
- axios's shouldBypassProxy does not recognize IPv4-mapped IPv6 addresses, allowing NO_PROXY bypass (incomplete fix for CVE-2025-62718)high · GHSA-pjwm-pj3p-43mv
Release by release
- New
QUERY HTTP Method: Added support for the QUERY HTTP method across adapters and type definitions. (#10802)
- New
ECONNREFUSED Error Constant: Exposed
ECONNREFUSEDas a constant onAxiosErrorso callers can match connection-refused failures without comparing string literals (closes #6485). (#10680) - New
Encode Helper Export: Exported the internal
encodehelper frombuildURLso userland param serializers can reuse the same encoding logic that axios uses internally. (#6897) - Fixed
Fetch adapter now enforces
maxBodyLengthandmaxContentLength. These limits were silently ignored on the fetch adapter prior to 1.16.0 — anyone relying on them as a safety net (DoS protection, accidental large uploads) had no protection. (#10795)
- New
2 other lines we could not sort, mostly version bumps
- 1.16.0
Basic auth credentials embedded in URLs are now URL-decoded. If you have percent-encoded credentials in a URL (e.g.
https://user:p%40ss@host), the decoded value is what now goes on the wire. (#10825) - 1.16.0
transformRequestinput typing change was reverted. The typing change introduced in #10745 was reverted in #10810 after follow-up review — net behavior is unchanged from 1.15.2. (#10745, #10810)
5 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.