Skip to content

Update activesupport to 7.2.4 in the example app - #140

Merged
JakubKorytko merged 2 commits into
mainfrom
rocio-update-activesupport
Nov 26, 2026
Merged

JakubKorytko merged 2 commits into
mainfrom
rocio-update-activesupport

Conversation

@pecanoro

@pecanoro pecanoro commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Details

Updates activesupport from 7.1.3.4 to 7.2.4 in apps/basic-example/Gemfile.lock. This closes three medium Dependabot alerts (6, 7, 8: ReDoS in number_to_delimited, XSS in SafeBuffer#%, DoS in number helpers), which are patched in 7.2.3.1.

The example app's Gemfile now requires ruby ">= 3.1" and activesupport '>= 7.2.3.1', '< 8'. The old floors (ruby ">= 2.6.10", activesupport >= 6.1.7.5) let Bundler on Ruby < 3.1 quietly resolve back to activesupport 6.1.7.10, which has none of these fixes. activesupport 7.2 needs Ruby 3.1+ anyway, so older Rubies now fail early with a clear version error.

The high alert (360, 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 for building the example app locally and in CI, and no server runs it, so that alert is dismissed as not used, same as in App: https://github.com/Expensify/Expensify/issues/705007#issuecomment-6928285274

Bundler also bumped xcodeproj from 1.24.0 to 1.25.1: the lockfile on main has rexml 3.4.4, which xcodeproj 1.24 (rexml ~> 3.2.4) doesn't accept. It also adds securerandom 0.4.1, a new activesupport 7.2 dependency.

Related Issues

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

Manual Tests

No automated tests cover the Ruby gems; they're only used to run CocoaPods for the example app.

  1. In apps/basic-example, run bundle install.
  2. Run bundle exec pod --version and confirm it prints 1.15.2.
  3. In the repo root, run npm ci.
  4. In apps/basic-example/ios, run bundle exec pod install.
  5. Confirm pod installation completes.

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

Linked PRs

None

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@pecanoro

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

exfy-clabot Bot added a commit to Expensify/CLA that referenced this pull request Nov 24, 2026
@JakubKorytko

Copy link
Copy Markdown
Member

@pecanoro I can't see the linked E/E issue. Do you want me to review and merge this one, or will someone take it internally? If you know who the owner is, I can assign it to them as well

@pecanoro

Copy link
Copy Markdown
Contributor Author

@JakubKorytko Feel free to review it! The internal issue is just about fixing the vulnerability that was found in one of the packages:

image

@JakubKorytko JakubKorytko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@pecanoro 🙏 could we also bump the floors in apps/basic-example/Gemfile? Right now it still allows ruby ">= 2.6.10" and activesupport ">= 6.1.7.5", so the fix can quietly get undone. I tried it on Ruby 2.6.10 and bundle install rewrites the lockfile back to activesupport 6.1.7.10, which has none of these 3 CVEs patched, and then pod install crashes on a NameError. Something like this

ruby ">= 3.1"

gem 'activesupport', '>= 7.2.3.1', '< 8'

I tested it locally, on 3.3 the lockfile only changes in DEPENDENCIES and pods resolve the same, and on 2.6.10 it fails right away with a clear Ruby version error

@pecanoro

Copy link
Copy Markdown
Contributor Author

Thanks! Bumped the floors to ruby ">= 3.1" and activesupport '>= 7.2.3.1', '< 8'; lockfile only changed in DEPENDENCIES.

@pecanoro

Copy link
Copy Markdown
Contributor Author

@JakubKorytko Updated!

@JakubKorytko JakubKorytko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks a lot!

@JakubKorytko
JakubKorytko merged commit 855bba9 into main Nov 26, 2026
7 of 8 checks passed
@os-botify

os-botify Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

🚀 Published to npm in 0.3.3 🎉

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