Skip to content

chore: bump axios to 1.21.0 - #9623

Merged
sid-bruno merged 1 commit into
usebruno:mainfrom
prateek-bruno:chore/bump-axios
Oct 30, 2026
Merged

sid-bruno merged 1 commit into
usebruno:mainfrom
prateek-bruno:chore/bump-axios

Conversation

@prateek-bruno

@prateek-bruno prateek-bruno commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Bumps axios from 1.18.0 to 1.21.0 in every workspace that depends on it (cli, electron, js, requests, tests) and in the root overrides. The version is pinned exactly. In the lockfile, only the axios entry and the workspace specs change, and proxy-from-env moves from under axios to the top level.

Problem

npm audit reports 12 axios advisories (6 high, 6 moderate), all fixed in 1.20.0:

They cover prototype-pollution gadgets, header injection, an HTTP/2 proxy bypass, ReDoS reachable through a redirect Location, and CIDR NO_PROXY entries being ignored.

Fix

  • Improvement: request headers named Get, Post, Put, Patch, Delete, Head, Query or Common (any letter case) are now sent. Before, they were silently dropped.
    Impact: app and CLI. Requests from the request tab, the collection runner and bru run, plus bru.sendRequest and axios in scripts.

  • Improvement: when every address of a host refuses the connection (for example a localhost server that isn't running, which resolves to both ::1 and 127.0.0.1), the error now reads connect ECONNREFUSED ::1:<port>; connect ECONNREFUSED 127.0.0.1:<port>. Before, it was empty.
    Impact: the app's response pane shows this message where it used to show "Error occurred while executing the request!". bru run shows the full message where it used to show only ECONNREFUSED.

  • Improvement: CIDR entries in NO_PROXY (for example 127.0.0.0/8) are now honoured. Before, those requests still went through HTTP_PROXY / HTTPS_PROXY.
    Impact: axios in scripts (app and CLI) and bru import <url>. Bruno's own requests use their own proxy settings and are not affected.

  • Improvement: when both HTTP_PROXY and NODE_USE_ENV_PROXY=1 are set, plain-HTTP requests now go through the proxy once. Before, axios 1.18 tried to route them through the proxy twice, and they failed with The property 'Host in options.headers' must match the request authority.
    Impact: bru import <url> and axios in scripts, in the CLI on Node 24.

  • Change: with NODE_USE_ENV_PROXY=1, an http:// PAC file is now fetched directly instead of through HTTP_PROXY, as https:// PAC URLs already were.
    Impact: bru run using the system proxy, on Node 24.

Contribution Checklist:

  • I've used AI significantly to create this pull request
  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.
  • I've run the claude code review skill locally.

Summary by CodeRabbit

  • Chores
    • Updated the underlying HTTP request components across the app, command-line tool, and supporting packages to a newer version. No user-facing changes are noted.

@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 03010f1 and 2e8c188.

Files ignored due to path filters: 1
  • package-lock.json is excluded by !**/package-lock.json
Files selected for processing: 6
  • package.json
  • packages/bruno-cli/package.json
  • packages/bruno-electron/package.json
  • packages/bruno-js/package.json
  • packages/bruno-requests/package.json
  • packages/bruno-tests/package.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Walkthrough

The root override and Axios dependency declarations in five packages change from version 1.18.0 to 1.21.0.

Changes

Axios version update

Layer / File(s) Summary
Update Axios declarations
package.json, packages/bruno-cli/package.json, packages/bruno-electron/package.json, packages/bruno-js/package.json, packages/bruno-requests/package.json, packages/bruno-tests/package.json
The root override and five package manifests change their Axios version from 1.18.0 to 1.21.0.

Priority: Normal

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Possibly related PRs

  • usebruno/bruno#9630: Adds HTTP/2 handling through Axios instances and custom transports in the CLI and Electron paths.

Suggested reviewers: sid-bruno, bijin-bruno

Merge Risk: Minimal · up to 2e8c1

No actionable merge-blocking risk is identified; the dependency update is mergeable with normal checks.

Pre-merge checks: Passed 4
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly and concisely describes the main change: updating Axios to version 1.21.0 across the affected workspaces and root override.
Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Axios steps to a newer release
Five packages follow in line
The root override joins them
Version numbers align
A tidy change across the manifests

Comment @coderabbitai help to get the list of available commands.

@prateek-bruno prateek-bruno mentioned this pull request Oct 26, 2026
7 tasks
@anandbaburajan

Copy link
Copy Markdown

LGTM

@sid-bruno

Copy link
Copy Markdown
Collaborator

@dependabot rebase

@prateek-bruno
prateek-bruno marked this pull request as ready for review October 28, 2026 17:39
@prateek-bruno
prateek-bruno requested a review from a team October 28, 2026 17:39
@prateek-bruno prateek-bruno changed the title chore: bump axios chore: bump axios to 1.21.0 Oct 28, 2026
@sid-bruno
sid-bruno merged commit 93f3577 into usebruno:main Oct 30, 2026
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants