Skip to content

fix: update axios to 1.13.6 (CVE-2026-25639, MAL-2026-2306)#3286

Merged
jeanfbrito merged 1 commit intodevfrom
fix/axios-cve-2026-25639
Apr 1, 2026
Merged

fix: update axios to 1.13.6 (CVE-2026-25639, MAL-2026-2306)#3286
jeanfbrito merged 1 commit intodevfrom
fix/axios-cve-2026-25639

Conversation

@jeanfbrito
Copy link
Copy Markdown
Member

@jeanfbrito jeanfbrito commented Apr 1, 2026

Summary

Updates axios from ~1.13.2 (resolved 1.13.4) to ~1.13.6 to address two security vulnerabilities in the dependency chain.

Vulnerabilities Addressed

CVE-2026-25639 — Prototype Pollution Denial of Service in axios

The mergeConfig function in axios (prior to 1.13.5) crashes with a TypeError when processing configuration objects containing __proto__ as an own property. An attacker can trigger this by providing a malicious configuration object created via JSON.parse(), causing complete denial of service. This is a prototype pollution vector that bypasses normal prototype chain protections by using __proto__ as a direct property key.

MAL-2026-2306 — Malicious package advisory (follow-redirects)

A malicious package advisory affecting the follow-redirects transitive dependency (used by axios for HTTP redirect handling). Updating axios to 1.13.6 ensures the resolved follow-redirects version is patched.

Additional bug fixes included (1.13.5 → 1.13.6)

  • fetch adapter: Prevent TypeError when config.env is undefined
  • HTTP/2: Improved session handling
  • mergeConfig: Fixed spacing issue in config merging

Changes

  • package.json: axios version spec changed from ~1.13.2 to ~1.13.6
  • yarn.lock: Updated accordingly

Test plan

  • TypeScript compilation passes (tsc --noEmit)
  • ESLint passes (no errors)
  • All 213 tests pass across 17 suites
  • CI build verification

Summary by CodeRabbit

  • Chores
    • Updated the axios dependency to a newer patch release (~1.13.6).
    • Added a resolution to pin axios to 1.13.6 during dependency resolution to ensure consistent installs.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 1, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 1193003b-fdfc-4d86-b59c-9dd2a1ae8ea4

📥 Commits

Reviewing files that changed from the base of the PR and between 86091ac and 0eb38cd.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (1)
  • package.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • package.json
📜 Recent review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: check (ubuntu-latest)
  • GitHub Check: check (windows-latest)

Walkthrough

Updated package.json to change the axios dependency from ~1.13.2 to ~1.13.6 and added a resolutions entry to force axios version 1.13.6 during dependency resolution.

Changes

Cohort / File(s) Summary
Dependencies
package.json
Bumped runtime dependency axios from ~1.13.2 to ~1.13.6 and added/updated a resolutions entry for axios = 1.13.6.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested labels

type: chore

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly and specifically describes the main change: updating axios to version 1.13.6 to address two identified security vulnerabilities (CVE-2026-25639 and MAL-2026-2306), which aligns perfectly with the PR's primary objective.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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

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

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@package.json`:
- Line 67: The package.json change bumped axios to ~1.13.6 but a transitive
dependency `@ewsjs/xhr` (package name) still allows an older axios (1.13.4) so
both versions remain; fix by either updating the `@ewsjs/xhr` dependency to a
version that requires axios >=1.13.6 or add a top-level package manager
resolution (e.g., a "resolutions" entry) forcing [email protected], then reinstall
and regenerate the lockfile so only axios 1.13.6 is present in node_modules;
target the package.json entry for axios and the dependency entry for `@ewsjs/xhr`
when making the change and ensure the lockfile is committed.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: fbe64e3a-74b7-4d3e-a9d6-0817501cbe9a

📥 Commits

Reviewing files that changed from the base of the PR and between f5be646 and 86091ac.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (1)
  • package.json
📜 Review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: check (ubuntu-latest)
  • GitHub Check: check (windows-latest)
🧰 Additional context used
🧠 Learnings (3)
📓 Common learnings
Learnt from: Ram-sah19
Repo: RocketChat/Rocket.Chat.Electron PR: 3254
File: .github/workflows/build-release.yml:80-94
Timestamp: 2026-03-11T06:38:40.426Z
Learning: In the RocketChat/Rocket.Chat.Electron repository, the issues flagged in `.github/workflows/build-release.yml` (e.g., `node12` runtime in the release action and missing `snapcraft_token` input), i18n files, and `electron-builder.json` are pre-existing in the `develop` branch and are pulled in during merge conflict resolution. Do not flag these as new issues introduced by PRs that only modify `src/injected.ts` and `src/ui/main/rootWindow.ts`.
📚 Learning: 2026-02-04T19:29:54.650Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat.Electron PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-02-04T19:29:54.650Z
Learning: Applies to **/*.{ts,tsx} : Use Fuselage components from `rocket.chat/fuselage` for all UI work and only create custom components when Fuselage doesn't provide what's needed

Applied to files:

  • package.json
📚 Learning: 2026-03-11T06:38:40.426Z
Learnt from: Ram-sah19
Repo: RocketChat/Rocket.Chat.Electron PR: 3254
File: .github/workflows/build-release.yml:80-94
Timestamp: 2026-03-11T06:38:40.426Z
Learning: In the RocketChat/Rocket.Chat.Electron repository, the issues flagged in `.github/workflows/build-release.yml` (e.g., `node12` runtime in the release action and missing `snapcraft_token` input), i18n files, and `electron-builder.json` are pre-existing in the `develop` branch and are pulled in during merge conflict resolution. Do not flag these as new issues introduced by PRs that only modify `src/injected.ts` and `src/ui/main/rootWindow.ts`.

Applied to files:

  • package.json

Addresses CVE-2026-25639 (prototype pollution DoS in mergeConfig) and
MAL-2026-2306. Adds a resolutions entry to force axios 1.13.6 across
all transitive consumers (e.g. @ewsjs/xhr), eliminating the duplicate
1.13.4 copy from the lockfile.
@jeanfbrito jeanfbrito force-pushed the fix/axios-cve-2026-25639 branch from 86091ac to 0eb38cd Compare April 1, 2026 17:36
@jeanfbrito jeanfbrito merged commit c656fe5 into dev Apr 1, 2026
7 checks passed
@jeanfbrito jeanfbrito deleted the fix/axios-cve-2026-25639 branch April 1, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant