fix(security): update axios override to patched release

Closed
DI
4mo ago
+11-5

Summary

This PR updates the repository-level Axios override from 1.14.0 to 1.18.1 and refreshes bun.lock so all transitive Axios consumers resolve to the patched release.

Why this matters

The root override forced all Axios consumers to 1.14.0. bun audit reports 23 Axios advisories for that version, including high-severity proxy/SSRF, credential leak, and prototype-pollution gadget issues. The API uses Axios transitively through integrations such as Slack and Tavily/Mastra, so the override affects production server-side dependency resolution.

External references checked before the change:

Changes

  • Updates the root overrides.axios pin from 1.14.0 to 1.18.1.
  • Refreshes bun.lock to resolve Axios to 1.18.1 and its updated dependency set.
  • Preserves the repository-wide override so all transitive consumers share one patched Axios floor.

Validation

Commands run:

  • bun info axios version — passed; returned 1.18.1
  • bun install --lockfile-only --ignore-scripts — passed
  • bun install --frozen --ignore-scripts — passed
  • bun audit --json before/after — ran; Axios advisories dropped from 23 to 0
  • bun pm why axios — passed; showed Axios resolved to 1.18.1 through Slack/Tavily/Mastra paths
  • cd apps/api && bun test src — passed (16 tests)
  • bunx @biomejs/biome@2.4.2 check package.json — passed
  • git diff --check — passed

Failures:

  • bun audit --json still exits non-zero after the change due to unrelated non-Axios advisories already present in the dependency graph.

Risk

Risk level: medium

Compatibility impact: Axios is upgraded across all transitive consumers from 1.14.0 to 1.18.1. This is a patch/minor-range security update on the existing Axios 1.x line.
Rollback simplicity: revert package.json and bun.lock.
Remaining edge cases: transitive consumers may rely on Axios internals, but @slack/web-api and @tavily/core both declare Axios ranges that accept 1.18.1.

Issue

No existing issue. This was discovered during repository analysis.

Notes for maintainers

bun install also refreshed stale workspace version metadata in bun.lock for packages whose package.json versions already changed on main; no package source files were modified.


Summary by cubic

Updates the repo-wide axios override to 1.18.1 to remove known security advisories and ensure all transitive consumers use the patched version.

  • Dependencies
    • Set overrides.axios to 1.18.1 in package.json and bun.lock.
    • Regenerated lockfile so Slack/Tavily/Mastra paths resolve to axios@1.18.1 (adds https-proxy-agent, updates follow-redirects).
    • bun audit: Axios findings drop from 23 to 0.