Packages

axios

1.21.1 · 9 Nov 2026MIT150.1M / weekRepositoryHomepagenpmAtom feed

Upgrading axios From 0.3.0 to 0.35.0

65 releases in betweennotes for 33

Other targets from 0.3.0Clears its 23 advisories0.33.0Latest1.21.1
  1. 0.3.0yours
  2. 1 release
  3. 0.4.0major
  4. 2 releases
  5. 0.5.0major
  6. 4 releases
  7. 0.6.0major
  8. 0.7.0major
  9. 0.8.0major
  10. 1 release
  11. 0.9.0major
  12. 1 release
  13. 0.10.0major
  14. 0.11.0major
  15. 1 release
  16. 0.12.0major
  17. 0.13.0major
  18. 1 release
  19. 0.14.0major
  20. 0.15.0major
  21. 3 releases
  22. 0.16.0major
  23. 2 releases
  24. 0.17.0major
  25. 1 release
  26. 0.18.0major
  27. 0.18.1security
  28. 0.19.0major
  29. 0.19.1security
  30. 0.19.2security
  31. 0.20.0major
  32. 0.21.0major
  33. 0.21.1security
  34. 0.21.2security
  35. 2 releases
  36. 0.22.0major
  37. 0.23.0major
  38. 0.24.0major
  39. 0.25.0major
  40. 0.26.0security
  41. 1 release
  42. 0.27.0major
  43. 2 releases
  44. 0.28.0security
  45. 1 release
  46. 0.29.0security
  47. 0.30.0security
  48. 1 release
  49. 0.30.2security
  50. 0.30.3security
  51. 1 release
  52. 0.31.0security
  53. 0.31.1security
  54. 0.32.0security
  55. 0.33.0security
  56. 0.34.0security
  57. 0.35.0target
26+
changes to make
23
advisories fixed
26+
new
98+
fixes

Counted from 33 of 65 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking0.35.0
  • Breaking0.34.0
  • Breaking0.34.0
  • Breaking0.32.0
  • Breaking0.32.0
  • Breaking0.31.1
  • Breaking0.30.0
  • Breaking0.28.0
  • Breaking0.27.0
  • Breaking0.27.0

Security

Fixes 23 advisories affecting 0.3.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.34.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.0 as local for proxy bypass. (#11001)

    0.33.0
  • Default error redaction: AxiosError.toJSON() now redacts sensitive keys by default to prevent credential leaks in logs. The behavior is configurable via config.redact, with defaults exposed on defaults.redact.

    0.32.0
  • Cookie & XSRF handling: Cookie names are read literally rather than via regex, and only own properties are respected when evaluating withXSRFToken.

    0.32.0
  • Proxy bypass IPv6 parity: NO_PROXY matching now handles canonical IPv4-mapped IPv6 forms such as ::ffff:127.0.0.1 and ::ffff:7f00:1.

    0.32.0
  • Node http adapter hardening: Strips Proxy-Authorization when no proxy is in use and gates socketPath behind a new allowedSocketPaths allowlist (string or array, normalized) to reduce accidental Unix socket exposure.

    0.32.0
  • Browser xhr adapter: Stricter own-property checks when reading config and headers.

    0.32.0
  • URL parameters: AxiosURLSearchParams keeps %00 encoded and applies consistent encoding throughout.

    0.32.0
  • Public type surface: Adds formDataHeaderPolicy, redact, and allowedSocketPaths to the TypeScript declarations alongside their runtime defaults.

    0.32.0

Release by release

  1. 0.35.0

    Migration needed3 Nov 2026
    • Breaking

      Parameter Depth Limit: params nested deeper than 100 levels now reject with ERR_BAD_OPTION_VALUE. (#11243)

  2. 0.34.0

    Security fix16 Sep 20262 new · 3 fixes
    • 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.

  3. 0.33.0

    Security fix14 Jun 20261 new
    • 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.0 as local for proxy bypass. (#11001)

    • New

      Node.js 26: Adds Node.js 26 to the v0.x CI and release/publish matrices. (#10937)

  4. 0.32.0

    Security fix4 May 2026
    • Security

      Default error redaction: AxiosError.toJSON() now redacts sensitive keys by default to prevent credential leaks in logs. The behavior is configurable via config.redact, with defaults exposed on defaults.redact.

    • Security

      Cookie & XSRF handling: Cookie names are read literally rather than via regex, and only own properties are respected when evaluating withXSRFToken.

    • Security

      Proxy bypass IPv6 parity: NO_PROXY matching now handles canonical IPv4-mapped IPv6 forms such as ::ffff:127.0.0.1 and ::ffff:7f00:1.

    • Security

      Node http adapter hardening: Strips Proxy-Authorization when no proxy is in use and gates socketPath behind a new allowedSocketPaths allowlist (string or array, normalized) to reduce accidental Unix socket exposure.

  5. 0.31.1

    Security fix19 Apr 2026
    • Security

      This release backports a broad set of security hardenings from the v1 line — covering prototype-pollution defences, stream size enforcement, XSRF handling, URL null-byte encoding, and bounded FormData recursion — and drops committed dist/ artefacts along with Bower support.

    • Security

      Prototype Pollution in Header Merge (GHSA-6chq-wfr3-2hj9): Tightened isFormData to reject plain/null-prototype objects and require append, and guarded the Node HTTP adapter so data.getHeaders() is only merged when it is not inherited from Object.prototype. Blocks injected headers via polluted getHeaders. (#10750)

    • Security

      Prototype Pollution in Config Merging (GHSA-pf86-5x62-jrwf): mergeConfig, defaults resolution, and the HTTP adapter now uses own-property checks for transport, env, Blob, formSerializer, and transforms arrays, and merged configs are returned as null-prototype objects. Prevents hijacking of the request flow through polluted prototypes. (#10752)

    • Security

      FormData / Params Recursion DoS: Added a configurable maxDepth (default 100, Infinity disables) to toFormData and params serialisation, throwing AxiosError with code ERR_FORM_DATA_DEPTH_EXCEEDED when exceeded. Circular-reference detection is preserved. (#10728)

    • Security

      Null-Byte Injection in Query Strings: Removed the unsafe %00 → null-byte substitution from AxiosURLSearchParams.encode so %00 is preserved as-is. Other encoding behaviour (including %20 → +) unchanged. (#10737)

    • Security

      Consolidated v1 Security Backport: Rolls up remaining v1 hardenings into v0.x: maxContentLength enforcement for responseType: 'stream' via a guarded transform with deferred piping, maxBodyLength enforcement for streamed uploads on native http/https with maxRedirects: 0, and stricter withXSRFToken handling so only own boolean true enables cross-origin XSRF headers. (#10764)

    • Breaking

      Bower & Committed dist/ Removed: dist/ bundles are no longer committed to the repo, and bower.json plus the Grunt package2bower task have been removed. CI still builds bundles before publish, so npm/yarn/pnpm consumers are unaffected; installs via Bower or directly from the git tree must migrate to npm or a CDN. (#10747)

  6. 0.31.0

    Security fix12 Apr 20262 fixes
    • Security

      This release backports security fixes from v1.x, hardens the CI/CD supply chain with OIDC publishing and zizmor scanning, resolves TypeScript typing issues in AxiosInstance, and fixes a performance regression in isEmptyObject().

    • Security

      Header Injection & Proxy Bypass: Backports v1 security hardening — sanitizes outgoing header values to strip invalid bytes, CRLF sequences, and boundary whitespace (including array values); adds proper NO_PROXY/no_proxy enforcement covering wildcards, explicit ports, loopback aliases (localhost, 127.0.0.1, ::1), bracketed IPv6, and trailing-dot hostnames. Proxy bypass is now checked before the proxy URL is parsed, and parsed.host is used for correct port and IPv6 handling. (#10688)

    • Security

      CI Security: SHA-pins all actions and disables credential persistence in v0.x CI, introduces zizmor security scanning with SARIF upload to code scanning, adds an OIDC Trusted Publishing workflow with npm provenance attestations, and gates all publishes behind a required npm-publish GitHub Environment with configurable reviewer protections. (#10638, #10639, #10667)

    • Fixed

      TypeScript — AxiosInstance Return Types: Fixes return types in AxiosInstance methods to correctly resolve to Promise<R> (matching AxiosPromise<T> semantics), and corrects the generic call signature so TypeScript properly enforces the response data type. TypeScript-only changes; no runtime impact. (#6253, #7328)

    • Fixed

      Performance: Fixes a performance regression in isEmptyObject() that caused excessive computation when the argument was a large string. (#6484)

  7. 0.30.4no release note

  8. 0.30.3

    Security fix18 Feb 2026
    • Security

      It addresses a high-priority vulnerability involving prototype pollution that could lead to a Denial of Service (DoS).

    • Security

      Backport: Fix DoS via proto key in merge config

    • Security

      As part of the security fix, Axios now restricts the merging of the proto key within configuration objects.

21 other lines we could not sort, mostly version bumps
  • Fixing content-type header repeated #4745

    0.28.0
  • URL params serializer

    0.28.0
  • Adding types for progress event callbacks #4675

    0.28.0
  • Adding Canceler parameters config and request

    0.28.0
  • Fixing Z_BUF_ERROR when no content

    0.28.0
  • Use type alias instead of interface for AxiosPromise

    0.28.0
  • Include request and config when creating a CanceledError instance

    0.28.0
  • Replaced webpack with rollup

    0.28.0
  • Updated AxiosError.config to be optional in the type definition

    0.28.0
  • Enhanced protocol parsing implementation

    0.27.2

153 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.