Skip to content

chore: bump axios version - #7085

Merged
OtavioStasiak merged 2 commits into
developfrom
fix.axios-vulnerability
Apr 1, 2026
Merged

OtavioStasiak merged 2 commits into
developfrom
fix.axios-vulnerability

Conversation

@OtavioStasiak

@OtavioStasiak OtavioStasiak commented Apr 1, 2026 •

Copy link
Copy Markdown
Contributor

Proposed changes

Specifically, this update accomplishes two things:

  • Patches CVE-2026-25639: Resolves a Denial of Service (DoS) vulnerability where malicious inputs to the mergeConfig function via JSON.parse() could cause a TypeError and crash the Node.js process.
  • Safely avoids MAL-2026-2306: We are deliberately pinning the version to 0.30.3 to prevent auto-upgrading to 0.30.4. Versions 0.30.4 and 1.14.1 were recently subjected to a severe supply chain compromise (deploying a Remote Access Trojan). Version 0.30.3 was published prior to the hijack and is confirmed safe.

By merging this PR, we secure the application against the mergeConfig crash while ensuring we stay completely clear of the compromised package versions on the npm registry.

Issue(s)

https://rocketchat.atlassian.net/browse/SUP-1018

How to test or reproduce

Screenshots

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves a current function)
  • New feature (non-breaking change which adds functionality)
  • Documentation update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

Further comments

Summary by CodeRabbit

Release Notes

  • Chores
    • Updated a core HTTP client dependency to a newer pinned version for improved stability and performance.

@OtavioStasiak
OtavioStasiak temporarily deployed to approve_e2e_testing April 1, 2026 16:19 — with GitHub Actions Inactive
@coderabbitai

coderabbitai Bot commented Apr 1, 2026 •

Copy link
Copy Markdown
Contributor

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: 8848c30e-e88d-4bd8-8e68-c53c96d7697a

📥 Commits

Reviewing files that changed from the base of the PR and between 859b766 and 1bf42a8.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (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). (6)
  • GitHub Check: E2E Run iOS (8) / ios-test
  • GitHub Check: E2E Run iOS (7) / ios-test
  • GitHub Check: E2E Run iOS (1) / ios-test
  • GitHub Check: E2E Run iOS (10) / ios-test
  • GitHub Check: E2E Run iOS (2) / ios-test
  • GitHub Check: E2E Run Android (12) / Android Tests
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2026-02-05T13:55:00.974Z
Learnt from: Rohit3523
Repo: RocketChat/Rocket.Chat.ReactNative PR: 6930
File: package.json:101-101
Timestamp: 2026-02-05T13:55:00.974Z
Learning: In this repository, the dependency on react-native-image-crop-picker should reference the RocketChat fork (RocketChat/react-native-image-crop-picker) with explicit commit pins, not the upstream ivpusic/react-native-image-crop-picker. Update package.json dependencies (and any lockfile) to point to the fork URL and a specific commit, ensuring edge-to-edge Android fixes are included. This pattern should apply to all package.json files in the repo that declare this dependency.

Applied to files:

  • package.json
📚 Learning: 2026-03-31T11:59:31.061Z
Learnt from: Rohit3523
Repo: RocketChat/Rocket.Chat.ReactNative PR: 6875
File: android/build.gradle:3-8
Timestamp: 2026-03-31T11:59:31.061Z
Learning: In the RocketChat/Rocket.Chat.ReactNative repository, the React Native upgrade helper (https://react-native-community.github.io/upgrade-helper/?from=0.79.4&to=0.81.5) recommends kotlinVersion = "2.1.20", compileSdkVersion = 36, targetSdkVersion = 36, and buildToolsVersion = "36.0.0" in android/build.gradle for the RN 0.79.4 → 0.81.5 upgrade. These are the sanctioned values for this upgrade path and should not be flagged as compatibility concerns.

Applied to files:

  • package.json
🔇 Additional comments (1)
package.json (1)

54-54: Lockfile correctly pins the safe Axios version

The lockfile already resolves axios@0.30.3 with integrity sha512-5/tmEb6TmE/ax3mdXBc/Mi6YdPGxQsv+0p5YlciXWt3PHIn0VamqCXhRMtScnwY3lbgSXLneOuXAKUhgmSRpwg== (yarn.lock line 5857), preventing drift to compromised versions.


Walkthrough

The axios dependency in package.json has been updated from version ~0.28.1 to a pinned exact version 0.30.3, changing from a compatible semver range to a fixed release specification.

Changes

Cohort / File(s) Summary
Dependency Update
package.json
Updated axios from ~0.28.1 to 0.30.3, pinning to an exact version instead of a compatible patch/minor range.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested labels

type: chore

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'chore: bump axios version' directly and clearly describes the main change in the pull request: updating the axios dependency.
Linked Issues check ✅ Passed The pull request updates axios to version 0.30.3 to patch CVE-2026-25639 and avoid supply-chain compromised versions, which directly addresses the security improvements referenced in SUP-1018.
Out of Scope Changes check ✅ Passed The pull request only modifies the axios dependency version in package.json, which is directly in scope for addressing the security vulnerability outlined in the linked issue.
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.

@OtavioStasiak
OtavioStasiak had a problem deploying to experimental_android_build April 1, 2026 16:23 — with GitHub Actions Error
@OtavioStasiak
OtavioStasiak had a problem deploying to official_android_build April 1, 2026 16:23 — with GitHub Actions Error
@OtavioStasiak
OtavioStasiak had a problem deploying to experimental_ios_build April 1, 2026 16:23 — with GitHub Actions Error
@OtavioStasiak
OtavioStasiak marked this pull request as ready for review April 1, 2026 17:13
@OtavioStasiak
OtavioStasiak had a problem deploying to official_android_build April 1, 2026 21:48 — with GitHub Actions Failure
@OtavioStasiak
OtavioStasiak had a problem deploying to experimental_ios_build April 1, 2026 21:48 — with GitHub Actions Failure
@OtavioStasiak
OtavioStasiak had a problem deploying to experimental_android_build April 1, 2026 21:48 — with GitHub Actions Failure
@OtavioStasiak
OtavioStasiak merged commit 0e5a514 into develop Apr 1, 2026
3 of 8 checks passed
@OtavioStasiak
OtavioStasiak deleted the fix.axios-vulnerability branch April 1, 2026 21:50
diegolmello pushed a commit that referenced this pull request Apr 2, 2026
diegolmello pushed a commit that referenced this pull request Apr 2, 2026
@diegolmello diegolmello mentioned this pull request Apr 2, 2026
10 tasks
diegolmello pushed a commit that referenced this pull request Apr 6, 2026
@diegolmello diegolmello mentioned this pull request Apr 6, 2026
5 tasks done

This branch had an error being deployed

5 failed deployments
official_android_build — 2b449699 Deployed Apr 1, 2026 by OtavioStasiak via Build Android Official / Hold #3461
experimental_ios_build — 2b449699 Deployed Apr 1, 2026 by OtavioStasiak via Build iOS Experimental / Hold #3461
official_ios_build — 2b449699 Deployed Apr 1, 2026 by OtavioStasiak via Build iOS Official / Hold #3461
experimental_android_build — 2b449699 Deployed Apr 1, 2026 by OtavioStasiak via Build Android Experimental / Hold #3461
approve_e2e_testing — 2b449699 Deployed Apr 1, 2026 by OtavioStasiak via E2E Hold #3461
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.

2 participants