From 38c9356e76f57a0c5fba13062cfa2a018351ea72 Mon Sep 17 00:00:00 2001 From: Jasper Mayone Date: Wed, 18 Nov 2026 11:37:58 -0500 Subject: [PATCH 1/2] fix: patch vulnerable gems and tighten ci permissions --- .github/workflows/ci.yml | 3 + Gemfile.lock | 138 ++++++++++---------- app/controllers/api/v1/health_controller.rb | 1 - 3 files changed, 72 insertions(+), 70 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c432a08d..16912c8a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,9 @@ on: - main workflow_dispatch: +permissions: + contents: read + jobs: scan_ruby: runs-on: ubuntu-latest diff --git a/Gemfile.lock b/Gemfile.lock index 72bcd23c..ed6a2a2a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -5,29 +5,29 @@ GEM concurrent-ruby (~> 1.0) action_text-trix (2.1.19) railties - actioncable (8.1.4) - actionpack (= 8.1.4) - activesupport (= 8.1.4) + actioncable (8.1.4.1) + actionpack (= 8.1.4.1) + activesupport (= 8.1.4.1) nio4r (~> 2.0) websocket-driver (>= 0.6.1) zeitwerk (~> 2.6) - actionmailbox (8.1.4) - actionpack (= 8.1.4) - activejob (= 8.1.4) - activerecord (= 8.1.4) - activestorage (= 8.1.4) - activesupport (= 8.1.4) + actionmailbox (8.1.4.1) + actionpack (= 8.1.4.1) + activejob (= 8.1.4.1) + activerecord (= 8.1.4.1) + activestorage (= 8.1.4.1) + activesupport (= 8.1.4.1) mail (>= 2.8.0) - actionmailer (8.1.4) - actionpack (= 8.1.4) - actionview (= 8.1.4) - activejob (= 8.1.4) - activesupport (= 8.1.4) + actionmailer (8.1.4.1) + actionpack (= 8.1.4.1) + actionview (= 8.1.4.1) + activejob (= 8.1.4.1) + activesupport (= 8.1.4.1) mail (>= 2.8.0) rails-dom-testing (~> 2.2) - actionpack (8.1.4) - actionview (= 8.1.4) - activesupport (= 8.1.4) + actionpack (8.1.4.1) + actionview (= 8.1.4.1) + activesupport (= 8.1.4.1) nokogiri (>= 1.8.5) rack (>= 2.2.4) rack-session (>= 1.0.1) @@ -35,42 +35,42 @@ GEM rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) useragent (~> 0.16) - actiontext (8.1.4) + actiontext (8.1.4.1) action_text-trix (~> 2.1.15) - actionpack (= 8.1.4) - activerecord (= 8.1.4) - activestorage (= 8.1.4) - activesupport (= 8.1.4) + actionpack (= 8.1.4.1) + activerecord (= 8.1.4.1) + activestorage (= 8.1.4.1) + activesupport (= 8.1.4.1) globalid (>= 0.6.0) nokogiri (>= 1.8.5) - actionview (8.1.4) - activesupport (= 8.1.4) + actionview (8.1.4.1) + activesupport (= 8.1.4.1) builder (~> 3.1) erubi (~> 1.11) rails-dom-testing (~> 2.2) - rails-html-sanitizer (~> 1.6) + rails-html-sanitizer (~> 1.6, >= 1.7.2) active_storage_validations (4.1.1) activejob (>= 7.0.1) activemodel (>= 7.0.1) activestorage (>= 7.0.1) activesupport (>= 7.0.1) marcel (>= 1.0.3) - activejob (8.1.4) - activesupport (= 8.1.4) + activejob (8.1.4.1) + activesupport (= 8.1.4.1) globalid (>= 0.3.6) - activemodel (8.1.4) - activesupport (= 8.1.4) - activerecord (8.1.4) - activemodel (= 8.1.4) - activesupport (= 8.1.4) + activemodel (8.1.4.1) + activesupport (= 8.1.4.1) + activerecord (8.1.4.1) + activemodel (= 8.1.4.1) + activesupport (= 8.1.4.1) timeout (>= 0.4.0) - activestorage (8.1.4) - actionpack (= 8.1.4) - activejob (= 8.1.4) - activerecord (= 8.1.4) - activesupport (= 8.1.4) + activestorage (8.1.4.1) + actionpack (= 8.1.4.1) + activejob (= 8.1.4.1) + activerecord (= 8.1.4.1) + activesupport (= 8.1.4.1) marcel (~> 1.0) - activesupport (8.1.4) + activesupport (8.1.4.1) base64 bigdecimal concurrent-ruby (~> 1.0, >= 1.3.1) @@ -91,7 +91,7 @@ GEM activesupport csv prism - addressable (2.9.0) + addressable (2.9.2) public_suffix (>= 2.0.2, < 8.0) ahoy_email (4.0.0) actionmailer (>= 7.2) @@ -167,7 +167,7 @@ GEM openssl-signature_algorithm (~> 1.0) countries (8.1.0) unaccent (~> 0.3) - crass (1.0.7) + crass (1.0.8) css_parser (3.3.0) addressable base64 @@ -290,9 +290,9 @@ GEM lint_roller (1.1.0) lockbox (2.2.0) logger (1.7.0) - loofah (2.25.2) + loofah (2.25.3) crass (~> 1.0.2) - nokogiri (>= 1.12.0) + nokogiri (>= 1.19.5) lucide-rails (0.7.4) railties (>= 4.1.0) mail (2.9.1) @@ -318,7 +318,7 @@ GEM railties (>= 7.1) stimulus-rails turbo-rails - msgpack (1.8.5) + msgpack (1.8.7) multi_xml (0.9.1) bigdecimal (>= 3.1, < 5) multipart-post (2.4.1) @@ -338,19 +338,19 @@ GEM net-smtp (0.5.2) net-protocol nio4r (2.7.5) - nokogiri (1.19.4-aarch64-linux-gnu) + nokogiri (1.19.7-aarch64-linux-gnu) racc (~> 1.4) - nokogiri (1.19.4-aarch64-linux-musl) + nokogiri (1.19.7-aarch64-linux-musl) racc (~> 1.4) - nokogiri (1.19.4-arm-linux-gnu) + nokogiri (1.19.7-arm-linux-gnu) racc (~> 1.4) - nokogiri (1.19.4-arm-linux-musl) + nokogiri (1.19.7-arm-linux-musl) racc (~> 1.4) - nokogiri (1.19.4-arm64-darwin) + nokogiri (1.19.7-arm64-darwin) racc (~> 1.4) - nokogiri (1.19.4-x86_64-linux-gnu) + nokogiri (1.19.7-x86_64-linux-gnu) racc (~> 1.4) - nokogiri (1.19.4-x86_64-linux-musl) + nokogiri (1.19.7-x86_64-linux-musl) racc (~> 1.4) oauth2 (2.0.25) anonymous_loader (~> 0.1, >= 0.1.3) @@ -419,7 +419,7 @@ GEM activesupport (>= 3.0.0) raabro (1.5.0) racc (1.8.1) - rack (3.2.7) + rack (3.2.8) rack-attack (6.8.0) rack (>= 1.0, < 4) rack-mini-profiler (5.0.0) @@ -435,20 +435,20 @@ GEM rack (>= 1.3) rackup (2.3.1) rack (>= 3) - rails (8.1.4) - actioncable (= 8.1.4) - actionmailbox (= 8.1.4) - actionmailer (= 8.1.4) - actionpack (= 8.1.4) - actiontext (= 8.1.4) - actionview (= 8.1.4) - activejob (= 8.1.4) - activemodel (= 8.1.4) - activerecord (= 8.1.4) - activestorage (= 8.1.4) - activesupport (= 8.1.4) + rails (8.1.4.1) + actioncable (= 8.1.4.1) + actionmailbox (= 8.1.4.1) + actionmailer (= 8.1.4.1) + actionpack (= 8.1.4.1) + actiontext (= 8.1.4.1) + actionview (= 8.1.4.1) + activejob (= 8.1.4.1) + activemodel (= 8.1.4.1) + activerecord (= 8.1.4.1) + activestorage (= 8.1.4.1) + activesupport (= 8.1.4.1) bundler (>= 1.15.0) - railties (= 8.1.4) + railties (= 8.1.4.1) rails-controller-testing (1.0.5) actionpack (>= 5.0.1.rc1) actionview (>= 5.0.1.rc1) @@ -457,12 +457,12 @@ GEM activesupport (>= 5.0.0) minitest nokogiri (>= 1.6) - rails-html-sanitizer (1.7.1) - loofah (~> 2.25, >= 2.25.2) + rails-html-sanitizer (1.7.2) + loofah (~> 2.25, >= 2.25.3) nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0) - railties (8.1.4) - actionpack (= 8.1.4) - activesupport (= 8.1.4) + railties (8.1.4.1) + actionpack (= 8.1.4.1) + activesupport (= 8.1.4.1) irb (~> 1.13) rackup (>= 1.0.0) rake (>= 12.2) diff --git a/app/controllers/api/v1/health_controller.rb b/app/controllers/api/v1/health_controller.rb index ec580ced..4a66d53c 100644 --- a/app/controllers/api/v1/health_controller.rb +++ b/app/controllers/api/v1/health_controller.rb @@ -4,7 +4,6 @@ module Api module V1 class HealthController < ApplicationController - skip_before_action :verify_authenticity_token skip_before_action :authenticate_user! def index From 4185c0f7a9fb52c6a4807361014684add09de0b7 Mon Sep 17 00:00:00 2001 From: Jasper Mayone Date: Wed, 18 Nov 2026 11:45:58 -0500 Subject: [PATCH 2/2] chore: update all gems --- Gemfile.lock | 142 +++++++++++++++++++++++++++------------------------ 1 file changed, 74 insertions(+), 68 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index ed6a2a2a..1501f11e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -104,7 +104,7 @@ GEM device_detector (>= 1) safely_block (>= 0.4) android_key_attestation (0.3.0) - annotaterb (4.25.0) + annotaterb (4.26.0) activerecord (>= 6.0.0) activesupport (>= 6.0.0) anonymous_loader (0.1.5) @@ -133,13 +133,13 @@ GEM blind_index (2.8.1) activesupport (>= 7.2) argon2-kdf (>= 1) - bootsnap (1.26.0) + bootsnap (1.26.1) msgpack (~> 1.5) brakeman (8.1.0) racc browser (6.2.0) builder (3.3.0) - bullet (8.3.0) + bullet (8.3.1) activesupport (>= 3.0.0) uniform_notifier (~> 1.11) capybara (3.40.0) @@ -151,28 +151,28 @@ GEM rack-test (>= 0.6.3) regexp_parser (>= 1.5, < 3.0) xpath (~> 3.2) - cbor (0.5.10.3) + cbor (0.6.2.2) cgi (0.5.2) childprocess (5.1.0) logger (~> 1.5) concurrent-ruby (1.3.8) - connection_pool (3.0.2) - console1984 (0.2.4) + connection_pool (3.0.3) + console1984 (0.2.5) irb (~> 1.13) parser rails (>= 7.0) rainbow - cose (1.3.1) - cbor (~> 0.5.9) + cose (1.4.0) + cbor (~> 0.6.2.2) openssl-signature_algorithm (~> 1.0) countries (8.1.0) unaccent (~> 0.3) crass (1.0.8) - css_parser (3.3.0) + css_parser (3.4.0) addressable base64 ssrf_filter (~> 1.5) - csv (3.3.6) + csv (3.3.7) date (3.6.0) debug (1.11.1) irb (~> 1.10) @@ -202,7 +202,7 @@ GEM factory_bot_rails (6.5.1) factory_bot (~> 6.5) railties (>= 6.1.0) - faraday (2.15.0) + faraday (2.15.1) faraday-net_http (>= 2.0, < 3.6) json logger @@ -236,9 +236,9 @@ GEM fugit (1.14.0) et-orbi (~> 1.4) raabro (~> 1.4) - fx (0.11.0) - activerecord (>= 7.2) - railties (>= 7.2) + fx (0.13.0) + activerecord (>= 8.1) + railties (>= 8.1) geocoder (1.8.6) base64 (>= 0.1.0) csv (>= 3.0.0) @@ -248,9 +248,8 @@ GEM activerecord (>= 4.0) hashids (~> 1.0) hashids (1.0.6) - hashie (5.1.0) + hashie (5.2.0) logger - htmlentities (4.4.2) httparty (0.24.3) csv mini_mime (>= 1.0.0) @@ -261,8 +260,8 @@ GEM actionpack (>= 6.0.0) activesupport (>= 6.0.0) railties (>= 6.0.0) - io-console (0.9.4) - irb (1.18.0) + io-console (0.9.5) + irb (1.19.0) pp (>= 0.6.0) prism (>= 1.3.0) rdoc (>= 4.0.0) @@ -288,7 +287,7 @@ GEM railties (>= 6.1) rexml lint_roller (1.1.0) - lockbox (2.2.0) + lockbox (2.3.0) logger (1.7.0) loofah (2.25.3) crass (~> 1.0.2) @@ -305,9 +304,9 @@ GEM marcel (1.2.1) matrix (0.4.3) mini_mime (1.1.5) - minitest (6.0.6) + minitest (6.1.0) drb (~> 2.0) - prism (~> 1.5) + prism (>= 1.5, < 3) mission_control-jobs (1.3.1) actioncable (>= 7.1) actionpack (>= 7.1) @@ -352,19 +351,19 @@ GEM racc (~> 1.4) nokogiri (1.19.7-x86_64-linux-musl) racc (~> 1.4) - oauth2 (2.0.25) - anonymous_loader (~> 0.1, >= 0.1.3) - auth-sanitizer (~> 0.2, >= 0.2.3) + oauth2 (2.1.0) + anonymous_loader (~> 0.1, >= 0.1.5) + auth-sanitizer (~> 0.2, >= 0.2.5) faraday (>= 0.17.3, < 4.0) jwt (>= 1.0, < 4.0) logger (~> 1.2) multi_xml (~> 0.5) rack (>= 1.2, < 4) - snaky_hash (~> 2.0, >= 2.0.7) - version_gem (~> 1.1, >= 1.1.14) + snaky_hash (~> 2.0, >= 2.0.9) + version_gem (~> 1.1, >= 1.1.17) okcomputer (1.20.0) benchmark - omniauth (2.3.1) + omniauth (2.4.2) hashie (>= 3.5.2) logger rack (>= 2.2.8) @@ -372,7 +371,7 @@ GEM omniauth-github (2.0.1) omniauth (~> 2.0) omniauth-oauth2 (~> 1.8) - omniauth-oauth2 (1.10.0) + omniauth-oauth2 (1.10.1) oauth2 (>= 2.0.2, < 3) omniauth (~> 2.3, >= 2.3.1) omniauth-rails_csrf_protection (2.0.1) @@ -386,7 +385,7 @@ GEM activerecord (>= 7.1) request_store (~> 1.4) parallel (2.3.0) - parser (3.3.12.0) + parser (3.3.13.0) ast (~> 2.4.1) racc pg (1.7.0) @@ -395,25 +394,30 @@ GEM pg (1.7.0-arm64-darwin) pg (1.7.0-x86_64-linux) pg (1.7.0-x86_64-linux-musl) - phonelib (0.10.28) + phonelib (0.11.0) pp (0.6.4) prettyprint - premailer (1.32.0) + premailer (1.33.0) addressable - css_parser (>= 1.19.0) - htmlentities (>= 4.0.0) + css_parser (>= 3.1.0) premailer-rails (1.12.0) actionmailer (>= 3) net-smtp premailer (~> 1.7, >= 1.7.9) prettyprint (0.2.1) - prism (1.9.0) + prism (2.1.0-aarch64-linux-gnu) + prism (2.1.0-aarch64-linux-musl) + prism (2.1.0-arm-linux-gnu) + prism (2.1.0-arm-linux-musl) + prism (2.1.0-arm64-darwin) + prism (2.1.0-x86_64-linux-gnu) + prism (2.1.0-x86_64-linux-musl) propshaft (1.3.2) actionpack (>= 7.0.0) activesupport (>= 7.0.0) rack public_suffix (7.0.5) - puma (8.0.2) + puma (8.1.2) nio4r (~> 2.0) pundit (2.5.2) activesupport (>= 3.0.0) @@ -424,7 +428,7 @@ GEM rack (>= 1.0, < 4) rack-mini-profiler (5.0.0) rack (>= 1.2.0) - rack-protection (4.2.1) + rack-protection (4.2.2) base64 (>= 0.1.0) logger (>= 1.6.0) rack (>= 3.0.0, < 4) @@ -484,28 +488,28 @@ GEM redis-client (= 0.30.1) redis-client (0.30.1) connection_pool - regexp_parser (2.13.1) + regexp_parser (2.13.4) relaxed-rubocop (2.5) reline (0.7.0) io-console (~> 0.5) request_store (1.7.0) rack (>= 1.4) - resend (1.18.0) + resend (1.19.0) base64 httparty (>= 0.22.0) rexml (3.4.4) rinku (2.0.6) rouge (5.1.0) strscan (~> 3.1) - rspec-core (3.13.6) + rspec-core (3.13.7) rspec-support (~> 3.13.0) - rspec-expectations (3.13.5) + rspec-expectations (3.13.6) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) - rspec-mocks (3.13.8) + rspec-mocks (3.13.9) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) - rspec-rails (8.0.4) + rspec-rails (8.1.0) actionpack (>= 7.2) activesupport (>= 7.2) railties (>= 7.2) @@ -513,8 +517,8 @@ GEM rspec-expectations (>= 3.13.0, < 5.0.0) rspec-mocks (>= 3.13.0, < 5.0.0) rspec-support (>= 3.13.0, < 5.0.0) - rspec-support (3.13.7) - rubocop (1.92.0) + rspec-support (3.13.8) + rubocop (1.92.3) json (>= 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) @@ -525,9 +529,11 @@ GEM rubocop-ast (>= 1.49.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 4.0) - rubocop-ast (1.50.0) + rubocop-ast (1.52.0) + ast (~> 2.4) parser (>= 3.3.7.2) - prism (~> 1.7) + prism (>= 1.7) + racc rubocop-capybara (3.1.0) lint_roller (~> 1.1) rubocop (~> 1.89) @@ -561,11 +567,11 @@ GEM safely_block (1.0.0) safety_net_attestation (0.5.0) jwt (>= 2.0, < 4.0) - sanitize (7.0.0) - crass (~> 1.0.2) - nokogiri (>= 1.16.8) + sanitize (7.0.2) + crass (~> 1.0.8) + nokogiri (>= 1.19.7) securerandom (0.4.1) - selenium-webdriver (4.51.0) + selenium-webdriver (4.53.0) base64 (~> 0.2) logger (~> 1.4) rubyzip (>= 1.2.2, < 4.0) @@ -587,7 +593,7 @@ GEM activejob (>= 7.2) activerecord (>= 7.2) railties (>= 7.2) - solid_queue (1.7.0) + solid_queue (1.7.2) activejob (>= 7.1) activerecord (>= 7.1) concurrent-ruby (>= 1.3.1) @@ -600,20 +606,20 @@ GEM strong_migrations (2.8.0) activerecord (>= 7.2) strscan (3.1.8) - tailwindcss-rails (4.6.0) + tailwindcss-rails (4.7.0) railties (>= 7.0.0) tailwindcss-ruby (~> 4.0) - tailwindcss-ruby (4.3.3) - tailwindcss-ruby (4.3.3-aarch64-linux-gnu) - tailwindcss-ruby (4.3.3-aarch64-linux-musl) - tailwindcss-ruby (4.3.3-arm64-darwin) - tailwindcss-ruby (4.3.3-x86_64-linux-gnu) - tailwindcss-ruby (4.3.3-x86_64-linux-musl) + tailwindcss-ruby (4.3.4) + tailwindcss-ruby (4.3.4-aarch64-linux-gnu) + tailwindcss-ruby (4.3.4-aarch64-linux-musl) + tailwindcss-ruby (4.3.4-arm64-darwin) + tailwindcss-ruby (4.3.4-x86_64-linux-gnu) + tailwindcss-ruby (4.3.4-x86_64-linux-musl) thor (1.5.0) - thruster (0.1.27) - thruster (0.1.27-aarch64-linux) - thruster (0.1.27-arm64-darwin) - thruster (0.1.27-x86_64-linux) + thruster (0.1.28) + thruster (0.1.28-aarch64-linux) + thruster (0.1.28-arm64-darwin) + thruster (0.1.28-x86_64-linux) timeout (0.6.1) tpm-key_attestation (0.14.2) bindata (~> 2.4) @@ -640,19 +646,19 @@ GEM actionview (>= 8.0.0) bindex (>= 0.4.0) railties (>= 8.0.0) - webauthn (3.4.3) + webauthn (3.5.1) android_key_attestation (~> 0.3.0) bindata (~> 2.4) - cbor (~> 0.5.9) - cose (~> 1.1) + cbor (~> 0.6.2.2) + cose (~> 1.4) openssl (>= 2.2) safety_net_attestation (~> 0.5.0) tpm-key_attestation (~> 0.14.0) websocket (1.2.11) - websocket-driver (0.8.2) + websocket-driver (0.9.0) base64 - websocket-extensions (>= 0.1.0) - websocket-extensions (0.1.5) + websocket-extensions (>= 0.2.0) + websocket-extensions (0.2.0) xpath (3.2.0) nokogiri (~> 1.8) zeitwerk (2.8.3)