Repository navigation
Update activesupport to 7.2.4 in the example app - #140
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
@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 |
|
@JakubKorytko Feel free to review it! The internal issue is just about fixing the vulnerability that was found in one of the packages:
|
JakubKorytko
left a comment
There was a problem hiding this comment.
@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
|
Thanks! Bumped the floors to |
|
@JakubKorytko Updated! |

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 innumber_to_delimited, XSS inSafeBuffer#%, DoS in number helpers), which are patched in 7.2.3.1.The example app's
Gemfilenow requiresruby ">= 3.1"andactivesupport '>= 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) requiresactivesupport < 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-6928285274Bundler also bumped xcodeproj from 1.24.0 to 1.25.1: the lockfile on
mainhas 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.
apps/basic-example, runbundle install.bundle exec pod --versionand confirm it prints 1.15.2.npm ci.apps/basic-example/ios, runbundle exec pod install.I ran these steps locally and they passed. I did not build or run the iOS app.
Linked PRs
None