axios
1.21.1 · 9 Nov 2026MIT150.1M / weekRepositoryHomepagenpmAtom feed
1.21.1 is the newest release of 1.x.
In short
1 security3 new9 fixed6 internal
- Security
Multipart Form Data: Raised the form-data dependency floor to ^4.0.6, preventing fresh installations from resolving versions affected by the CRLF injection vulnerability GHSA-hmw2-7cc7-3qxx (github.com/advisories/GHSA-hmw2-7cc7-3qxx).
Security
12 advisories affect 1.19.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
7 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
- 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
Release note
This release raises the form-data security floor, adds configuration and type-system capabilities, and fixes NO_PROXY matching, interceptor errors, progress reporting, and serialization edge cases.
Security Fixes
- Security
Multipart Form Data: Raised the form-data dependency floor to ^4.0.6, preventing fresh installations from resolving versions affected by the CRLF injection vulnerability GHSA-hmw2-7cc7-3qxx (github.com/advisories/GHSA-hmw2-7cc7-3qxx).
New Features
Configuration Extensibility: Preserved own-enumerable symbol-keyed fields through mergeConfig and added a generic params type across public TypeScript declarations, responses, errors,
adapters, and serializers. (#11043, #11081)Header Parameter Parsing: Added the opt-in AxiosHeaders.parseParameters() parser for quote-aware, RFC-style HTTP parameter parsing while preserving legacy parsing behavior.
HTTP Status Codes: Added the missing Cloudflare 520 WebServerReturnsAnUnknownError status and matching ESM/CJS declarations.
Bug Fixes
Form Data Conversion: Limited formDataToJSON path splitting to dot and bracket notation, preserving literal punctuation in keys, and removed browser-facing Buffer.from usage from toFormData to avoid unnecessary polyfills. (#11006, #11018)
Proxy Bypass: Canonicalized IPv4 shorthand, octal, and hexadecimal forms during NO_PROXY matching and honored * entries within comma- or space-separated bypass lists. (#11029, #11053)
Cancellation: Propagated already-aborted input signals immediately when composing abort signals.
Header Handling: Preserved empty first values for duplicate singleton headers and made AxiosHeaders#getSetCookie() consistently return arrays for present values. (#11036, #11037)
URL Handling: Included normalized, safely redacted offending URLs in malformed-protocol errors and removed repeated trailing slashes when combining base URLs. (#11024, #11038)
Progress Events: Clamped malformed negative progress values to zero and ensured final Node.js download progress events are delivered before streamed responses close. (#11039, #11040)
Error and JSON Serialization: Serialized Set values as arrays in JSON-compatible snapshots and synthesized useful AxiosError messages from otherwise-empty AggregateError instances. (#11044, #11059)
Content-Length Enforcement: Corrected base64 data: URL size estimation so maxContentLength is enforced consistently by the HTTP and Fetch adapters.
Synchronous Interceptors: Prevented requests from being dispatched after synchronous request interceptors fail unless their paired rejection handler resolves successfully.
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.