Skip to content

Update activesupport to 7.2.4 in Example - #295

Merged
NicolasBonet merged 1 commit into
mainfrom
update-activesupport-example
Nov 25, 2026
Merged

NicolasBonet merged 1 commit into
mainfrom
update-activesupport-example

Conversation

@madmax330

Copy link
Copy Markdown
Contributor

Details

Updates activesupport from 7.1.6 to 7.2.4 in Example/Gemfile.lock with bundle lock --update activesupport --conservative, so no other gem versions change. This closes three medium Dependabot alerts (179, 180, 181: ReDoS in number_to_delimited, XSS in SafeBuffer#%, DoS in number helpers), which are patched in 7.2.3.1.

Bundler also drops mutex_m, which activesupport 7.2 no longer depends on. Nothing else in the lockfile declares it, and pod install doesn't load it.

activesupport 7.2 requires Ruby 3.1 or later to install the Example gems. The Gemfile still says >= 2.6.10, but main already resolves gems that need Ruby 3.0.

The high alert (346, DoS in safe_constantize) is only patched in 8.0.5.2+, and every CocoaPods release up to the latest (1.17.0) requires activesupport < 8, so it can't be upgraded away. activesupport is only a CocoaPods dependency used to run pod install for the Example app. The published library doesn't include it, so that alert should be dismissed as not used, same as in react-native-wallet: Expensify/react-native-wallet#140

What this fixes

$ https://github.com/Expensify/Expensify/issues/707769

Manual tests

  1. With Ruby 3.1 or later, run cd Example && bundle install.
  2. Run bundle exec pod --version and confirm it prints 1.14.3.
  3. Run yarn install in Example.
  4. Run cd ios && bundle exec pod install.
  5. Confirm pod installation completes without errors.

I ran these steps locally with Ruby 3.3.7 and they passed. I did not build or run the app.

Checklist

  • I have described the bug/issue
  • I have provided reproduction in Example App
  • I have tested that solution works on Example App on all platforms:
    • Android
    • iOS
    • Web

Screenshots/Videos

N/A, this only changes the Ruby gems used to install the Example app's pods.

@madmax330
madmax330 requested a review from a team November 25, 2026 10:45
@expensify-chore-bot
expensify-chore-bot Bot requested review from NicolasBonet and removed request for a team November 25, 2026 10:45
@NicolasBonet
NicolasBonet merged commit bda0a94 into main Nov 25, 2026
5 of 6 checks passed
@os-botify

os-botify Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

🚀 Published to npm in 6.3.55 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants