Skip to content

fix(deps): bump vulnerable dependencies - #69

Merged
charIeszhao merged 2 commits into
masterfrom
simeng-fix-bump-vulnerable-dependencies
Oct 28, 2026
Merged

charIeszhao merged 2 commits into
masterfrom
simeng-fix-bump-vulnerable-dependencies

Conversation

@simeng-li

@simeng-li simeng-li commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Bump the gems flagged by open Dependabot alerts in logto/Gemfile.lock and logto-sample/Gemfile.lock to patched releases on their installed lines. Only the two lockfiles change; no Gemfile or gemspec requirement had to move. BUNDLED WITH, PLATFORMS and RUBY VERSION are unchanged.

logto/Gemfile.lock (SDK development lockfile)

Gem From To Advisories
jwt 2.8.1 2.10.3 GHSA-c32j-vqhx-rx3x (high)
addressable 2.8.6 2.9.0 GHSA-h27x-rffw-24p4 (high)

The gemspec's jwt ~> 2.8 requirement is unchanged, so SDK consumers resolve jwt themselves; this lockfile only affects the SDK's own development and CI.

logto-sample/Gemfile.lock

Gem From To Advisories
rails and all components (actionview, activestorage, activesupport, ...) 8.0.2.1 8.0.5.1 GHSA-xr9x-r78c-5hrm (critical), GHSA-9xrj-h377-fr87 (high), GHSA-qcfx-2mfw-w4cg, GHSA-r46p-8f7g-vvvg, GHSA-73f9-jhhh-hr5m, GHSA-cg4j-q9v8-6v38, GHSA-89vf-4333-qx8v, GHSA-2j26-frm8-cmj9, GHSA-p9fm-f462-ggrg, GHSA-v55j-83pf-r9cq
rack 3.2.5 3.2.7 13 advisories fixed in 3.2.6, 4 of them high
rack-session 2.1.1 2.1.2 GHSA-33qg-7wpp-89cq (critical)
nokogiri 1.18.9 1.19.4 GHSA-c4rq-3m3g-8wgx (high) + 10 medium/low
net-imap 0.5.7 0.5.15 GHSA-vcgp-9326-pqcp (high) + 7 medium/low
concurrent-ruby 1.3.5 1.3.8 GHSA-h8w8-99g7-qmvj (high), GHSA-6wx8-w4f5-wwcr, GHSA-wv3x-4vxv-whpp
crass 1.0.6 1.0.8 GHSA-6wmf-3r64-vcwv (high)
websocket-driver 0.7.7 0.8.2 GHSA-2x63-gw47-w4mm (high), GHSA-33ph-fccm-39pj, GHSA-ghhp-3qvg-889p, GHSA-8j3g-f24p-4mpw
jwt 2.8.1 2.10.3 GHSA-c32j-vqhx-rx3x (high)
addressable 2.8.6 2.9.0 GHSA-h27x-rffw-24p4 (high)
loofah 2.24.1 2.25.2 GHSA-9wjq-cp2p-hrgf
rails-html-sanitizer 1.6.2 1.7.1 GHSA-cj75-f6xr-r4g7
mail 2.8.1 2.9.1 GHSA-mvxr-6m87-mv2q
msgpack 1.7.2 1.8.6 GHSA-4mrv-5p47-p938

New transitive gem: tsort 0.2.0, which railties 8.0.5.1 now declares.

Reviewer notes

  • activestorage 8.0.5.1 disables libvips's untrusted loaders when ruby-vips is installed. The sample does not use ruby-vips or image_processing, so nothing changes for it.
  • websocket-driver 0.8.0 now emits binary frames as Encoding::BINARY strings instead of arrays. Action Cable only exchanges JSON text frames, and actioncable requires websocket-driver >= 0.6.1.
  • nokogiri 1.19.0 only drops Ruby 3.1 support (the sample pins Ruby 3.4.2). mail 2.9.0's one listed breaking change is internal (Mail::Field::FIELDS_MAP holds class names). loofah 2.25.2 also removes feed: from its default allowed protocols.

Not fixed

Gem Installed Patched in Advisories Why not
puma 6.4.3 7.2.1 / 8.0.2 GHSA-qpgp-93vx-g8v8, GHSA-2vqw-3mp8-cgmx (high) No 6.x fix; needs a major upgrade. Both issues are in the PROXY protocol v1 parser, which is only active with set_remote_address proxy_protocol: :v1; config/puma.rb doesn't enable it.
rubyzip 2.3.2 3.4.0 GHSA-47m2-wp7j-p9vc (high) No 2.x fix; 3.x is a major, and the locked selenium-webdriver 4.21.1 requires rubyzip < 3.0. Test-only dependency (system tests).
sqlite3 1.7.3 2.9.5 GHSA-28hh-pr2h-2w89 (low) No 1.x fix; 2.x needs the Gemfile's ~> 1.4 pin changed. That pin is already out of date: Rails 8.0's SQLite adapter requires sqlite3 >= 2.1, so on master any request that loads Active Record fails with a LoadError, including the development pending-migration check. This PR leaves that as it is; moving the sample to sqlite3 2.x would fix both.

CI runner

The test matrix now pins runs-on: ubuntu-24.04. ubuntu-latest moved to ubuntu-26.04, and ruby/setup-ruby has no Ruby 2.7 or 3.0 builds for it, so those two jobs failed before installing any gems. Same approach as logto-io/logto#9904. lint (Ruby 3.3) is unaffected and stays on ubuntu-latest.

Testing

Tested locally

Checklist

  • .changeset
  • unit tests
  • integration tests
  • necessary TSDoc comments

@charIeszhao
charIeszhao merged commit a4ed4ab into master Oct 28, 2026
5 checks passed
@charIeszhao
charIeszhao deleted the simeng-fix-bump-vulnerable-dependencies branch October 28, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants