Originally created by: dependabot[bot]
Bumps axios from 1.15.0 to 1.18.1.
Sourced from axios's releases.
v1.18.1 — June 21, 2026
This release focuses on Node HTTP adapter fixes, safer AxiosError serialisation, runtime/type correctness fixes, documentation updates, and dependency maintenance.
🐛 Bug Fixes
- AxiosError Serialisation: Made AxiosError#cause non-enumerable to prevent circular JSON serialisation failures when errors include nested causes. (#10913](https://github.com/href="https://redirect.github.com/axios/axios/issues/10913">/issues/10913))
- Node HTTP Adapter: Guarded socket.setKeepAlive for proxy agent streams, accepted path-only URLs when socketPath is configured, deferred environment proxy handling to Node, and explicitly passed maxBodyLength through to follow-redirects. (#10917](https://github.com/href="https://redirect.github.com/axios/axios/issues/10917">/issues/10917), #10930](https://github.com/href="https://redirect.github.com/axios/axios/issues/10930">/issues/10930), #10942](https://github.com/href="https://redirect.github.com/axios/axios/issues/10942">/issues/10942), #10993](https://github.com/href="https://redirect.github.com/axios/axios/issues/10993">/issues/10993))
- Runtime and Type Correctness: Fixed several runtime crashes, type definition mismatches, and incorrect error handling paths. (#10959](https://github.com/href="https://redirect.github.com/axios/axios/issues/10959">/issues/10959), #11021](https://github.com/href="https://redirect.github.com/axios/axios/issues/11021">/issues/11021))
- AxiosURLSearchParams: Switched the encoder callback to an arrow function so
encoder.call(this)receives theAxiosURLSearchParamsinstance correctly. (#11019](https://github.com/href="https://redirect.github.com/axios/axios/issues/11019">/issues/11019))🔧 Maintenance & Chores
Documentation: Documented sensitive headers and status transition behaviour, prepared cleaned-up docs, added Deno install instructions, and clarified that request data is request-specific (#11007](https://github.com/href="https://redirect.github.com/axios/axios/issues/11007">/issues/11007), #11010](https://github.com/href="https://redirect.github.com/axios/axios/issues/11010">/issues/11010), #11023](https://github.com/href="https://redirect.github.com/axios/axios/issues/11023">/issues/11023), #11025](https://github.com/href="https://redirect.github.com/axios/axios/issues/11025">/issues/11025))
Dependencies: Bumped vite, rollup, form-data, js-yaml, and multer across the root project, docs, smoke tests, and module test workspaces. (#11011](https://github.com/href="https://redirect.github.com/axios/axios/issues/11011">/issues/11011), #11012](https://github.com/href="https://redirect.github.com/axios/axios/issues/11012">/issues/11012), #11013](https://github.com/href="https://redirect.github.com/axios/axios/issues/11013">/issues/11013), #11014](https://github.com/href="https://redirect.github.com/axios/axios/issues/11014">/issues/11014), #11015](https://github.com/href="https://redirect.github.com/axios/axios/issues/11015">/issues/11015), #11016](https://github.com/href="https://redirect.github.com/axios/axios/issues/11016">/issues/11016), #11017](https://github.com/href="https://redirect.github.com/axios/axios/issues/11017">/issues/11017), #11026](https://github.com/href="https://redirect.github.com/axios/axios/issues/11026">/issues/11026))
🌟 New Contributors
We are thrilled to welcome our new contributors. Thank you for helping improve axios:
@webdevelopersrinu(#10913](https://github.com/href="https://redirect.github.com/axios/axios/issues/10913">/issues/10913))@sijie-Z(#10993](https://github.com/href="https://redirect.github.com/axios/axios/issues/10993">/issues/10993))@bartlomieju(#11023](https://github.com/href="https://redirect.github.com/axios/axios/issues/11023">/issues/11023))@JSap0914(#11019](https://github.com/href="https://redirect.github.com/axios/axios/issues/11019">/issues/11019))v1.18.0 — June 13, 2026
This release hardens redirect and URL handling, improves the validateStatus configuration semantics, and includes updates to documentation, dependencies, and release metadata.
🔒 Security Fixes
Redirect Header Safety: Added Node HTTP adapter support for stripping caller-specified sensitive headers on cross-origin redirects, helping prevent custom auth headers such as API keys from leaking to another origin. (#10892](https://github.com/href="https://redirect.github.com/axios/axios/issues/10892">/issues/10892))
URL And Request Hardening: Rejects malformed
http:andhttps:URLs that omit//withERR_INVALID_URL, while tightening prototype-pollution-safe config reads, stream size limits, FormData depth handling, data URL sizing, and localNO_PROXYmatching. (#11000](https://github.com/href="https://redirect.github.com/axios/axios/issues/11000">/issues/11000))🐛 Bug Fixes
- Status Validation: Added
transitional.validateStatusUndefinedResolvesso applications can opt in to treatingvalidateStatus: undefinedlike the option was omitted, whilevalidateStatus: nullremains the explicit way to accept every status. (#10899](https://github.com/href="https://redirect.github.com/axios/axios/issues/10899">/issues/10899))🔧 Maintenance & Chores
Documentation: Published the v1.17.0 release notes, fixed a changelog typo, clarified the package update PR policy, and marked the
proxyrequest config as Node.js-only in the advanced docs. (#10984](https://github.com/href="https://redirect.github.com/axios/axios/issues/10984">/issues/10984), #10988](https://github.com/href="https://redirect.github.com/axios/axios/issues/10988">/issues/10988), #10992](https://github.com/href="https://redirect.github.com/axios/axios/issues/10992">/issues/10992), #10995](https://github.com/href="https://redirect.github.com/axios/axios/issues/10995">/issues/10995))Dependencies: Bumped
@babel/core,@babel/preset-env,@commitlint/cli,@commitlint/config-conventional,@rollup/plugin-babel,@rollup/plugin-commonjs,@vitest/browser,@vitest/browser-playwright,eslint,lint-staged,rollup,vitest, andactions/checkout. (#10989](https://github.com/href="https://redirect.github.com/axios/axios/issues/10989">/issues/10989), #10996](https://github.com/href="https://redirect.github.com/axios/axios/issues/10996">/issues/10996), #10997](https://github.com/href="https://redirect.github.com/axios/axios/issues/10997">/issues/10997))Release Metadata: Prepared the 1.18.0 release by updating package metadata and the runtime
VERSIONvalue. (#11003](https://github.com/href="https://redirect.github.com/axios/axios/issues/11003">/issues/11003))
... (truncated)
Sourced from axios's changelog.
Changelog
v1.18.0 — June 13, 2026
This release hardens redirect and URL handling, improves the validateStatus configuration semantics, and includes updates to documentation, dependencies, and release metadata.
🔒 Security Fixes
Redirect Header Safety: Added Node HTTP adapter support for stripping caller-specified sensitive headers on cross-origin redirects, helping prevent custom auth headers such as API keys from leaking to another origin. (#10892](https://github.com/href="https://redirect.github.com/axios/axios/issues/10892">/issues/10892))
URL And Request Hardening: Rejects malformed
http:andhttps:URLs that omit//withERR_INVALID_URL, while tightening prototype-pollution-safe config reads, stream size limits, FormData depth handling, data URL sizing, and localNO_PROXYmatching. (#11000](https://github.com/href="https://redirect.github.com/axios/axios/issues/11000">/issues/11000))🐛 Bug Fixes
- Status Validation: Added
transitional.validateStatusUndefinedResolvesso applications can opt in to treatingvalidateStatus: undefinedlike the option was omitted, whilevalidateStatus: nullremains the explicit way to accept every status. (#10899](https://github.com/href="https://redirect.github.com/axios/axios/issues/10899">/issues/10899))🔧 Maintenance & Chores
Documentation: Published the v1.17.0 release notes, fixed a changelog typo, clarified the package update PR policy, and marked the
proxyrequest config as Node.js-only in the advanced docs. (#10984](https://github.com/href="https://redirect.github.com/axios/axios/issues/10984">/issues/10984), #10988](https://github.com/href="https://redirect.github.com/axios/axios/issues/10988">/issues/10988), #10992](https://github.com/href="https://redirect.github.com/axios/axios/issues/10992">/issues/10992), #10995](https://github.com/href="https://redirect.github.com/axios/axios/issues/10995">/issues/10995))Dependencies: Bumped
@babel/core,@babel/preset-env,@commitlint/cli,@commitlint/config-conventional,@rollup/plugin-babel,@rollup/plugin-commonjs,@vitest/browser,@vitest/browser-playwright,eslint,lint-staged,rollup,vitest, andactions/checkout. (#10989](https://github.com/href="https://redirect.github.com/axios/axios/issues/10989">/issues/10989), #10996](https://github.com/href="https://redirect.github.com/axios/axios/issues/10996">/issues/10996), #10997](https://github.com/href="https://redirect.github.com/axios/axios/issues/10997">/issues/10997))Release Metadata: Prepared the 1.18.0 release by updating package metadata and the runtime
VERSIONvalue. (#11003](https://github.com/href="https://redirect.github.com/axios/axios/issues/11003">/issues/11003))🌟 New Contributors
We are thrilled to welcome our new contributors. Thank you for helping improve axios:
@drori12(#10984](https://github.com/href="https://redirect.github.com/axios/axios/issues/10984">/issues/10984))@eyupcanakman(#10899](https://github.com/href="https://redirect.github.com/axios/axios/issues/10899">/issues/10899))@Adi-Beker(#10995](https://github.com/href="https://redirect.github.com/axios/axios/issues/10995">/issues/10995))v1.17.0 — June 1, 2026
This release adds Node HTTP zstd decompression, hardens config and release workflows, and fixes authentication, header, proxy, and type-handling regressions.
🔒 Security Fixes
- Config Hardening: Guarded
socketPath,params, andparamsSerializerreads with own-property checks to prevent inherited prototype values from affecting request behavior, including SSRF-sensitive paths. (#10901](https://github.com/href="https://redirect.github.com/axios/axios/issues/10901">/issues/10901), #10922](https://github.com/href="https://redirect.github.com/axios/axios/issues/10922">/issues/10922))- Release Publishing: Switched the publish workflow to npm staged publishing for safer, auditable package releases with provenance. (#10926](https://github.com/href="https://redirect.github.com/axios/axios/issues/10926">/issues/10926))
🚀 New Features
- HTTP Compression: Added Node HTTP adapter support for zstd response decompression, with
transitional.advertiseZstdAcceptEncodingcontrolling whetherzstdis advertised inAccept-Encoding. (#6792](https://github.com/href="https://redirect.github.com/axios/axios/issues/6792">/issues/6792), #10920](https://github.com/href="https://redirect.github.com/axios/axios/issues/10920">/issues/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](https://github.com/href="https://redirect.github.com/axios/axios/issues/10929">/issues/10929), #10896](https://github.com/href="https://redirect.github.com/axios/axios/issues/10896">/issues/10896))
... (truncated)
a209bfb chore(release): prepare release 1.18.1 (#11027](https://github.com/href="https://redirect.github.com/axios/axios/issues/11027">/issues/11027))fa6a55e chore(deps-dev): bump multer from 2.1.1 to 2.2.0 (#11026](https://github.com/href="https://redirect.github.com/axios/axios/issues/11026">/issues/11026))40e7be8 docs: clarifies that request data is request-specific in axios (#11025](https://github.com/href="https://redirect.github.com/axios/axios/issues/11025">/issues/11025))a446b39 fix(AxiosURLSearchParams): use arrow function so encoder.call(this) receives ...cf1306a docs: add Deno to install instructions (#11023](https://github.com/href="https://redirect.github.com/axios/axios/issues/11023">/issues/11023))b32880a fix: incorrect use of error (#11021](https://github.com/href="https://redirect.github.com/axios/axios/issues/11021">/issues/11021))1792eda fix: ensure maxBodyLength is explicitly passed to follow-redirects (#10993](https://github.com/href="https://redirect.github.com/axios/axios/issues/10993">/issues/10993))30499d6 fix: various runtime crashes and type definition mismatches (#10959](https://github.com/href="https://redirect.github.com/axios/axios/issues/10959">/issues/10959))20ce9c4 fix(http): defer env proxy handling to Node (#10942](https://github.com/href="https://redirect.github.com/axios/axios/issues/10942">/issues/10942))e64bcf9 chore(deps): merge branch 'v1.x' into tests/module/cjs (#11014](https://github.com/href="https://redirect.github.com/axios/axios/issues/11014">/issues/11014))Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.