From f42cac6e55bed0367bcf6846467d2475d3c51d9f Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 23 Aug 2023 19:09:19 +0000 Subject: [PATCH] fix: Gemfile & Gemfile.lock to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-RUBY-ACTIVESUPPORT-5851458 - https://snyk.io/vuln/SNYK-RUBY-RAILTIES-5851410 --- Gemfile | 16 +-- Gemfile.lock | 285 ++++++++++++++++++++++++++------------------------- 2 files changed, 155 insertions(+), 146 deletions(-) diff --git a/Gemfile b/Gemfile index 525929f9..bfaa9799 100644 --- a/Gemfile +++ b/Gemfile @@ -5,7 +5,7 @@ ruby '3.1.0' git_source(:github) { |repo| "https://github.com/#{repo}.git" } -gem 'rails', '~> 7.0.2', '>= 7.0.2.3' +gem 'rails', '~> 7.0.7', '>= 7.0.7.1' # Use postgresql as the database for Active Record gem 'pg', '>= 0.18', '< 2.0' @@ -13,7 +13,7 @@ gem 'pg', '>= 0.18', '< 2.0' # For rendering json, # TODO: turbostreamer replace this with https://github.com/thoughtbot/props_template # pros_template has simple syntax and slightly faster than turbostreamer -gem 'turbostreamer', '= 1.9' +gem 'turbostreamer', '= 1.10.0' gem 'graphql', '= 1.11.4' gem 'graphql-schema_comparator' @@ -29,7 +29,7 @@ gem 'elasticsearch-model'#, '~> 7.2.0' gem 'typhoeus' # Paging the results -gem 'pagy' +gem 'pagy', '>= 6.0.0' gem 'oj' gem 'oj_mimic_json' @@ -64,7 +64,7 @@ group :development do gem 'byebug', platform: :mri gem 'ruby-progressbar' gem 'benchmark-ips', require: false - gem 'bullet' + gem 'bullet', '>= 7.0.2' gem 'derailed_benchmarks' # run some pre commit hooks @@ -80,12 +80,12 @@ group :development do end group :test, :development do - gem 'rspec-rails', '= 5.0.2' - gem 'shoulda-matchers', '~> 5.1.0' + gem 'rspec-rails', '= 5.0.3' + gem 'shoulda-matchers', '~> 5.2.0' gem 'simplecov', require: false gem 'factory_bot_rails', '>= 6.2.0' - gem 'rubocop-rails_config', '>= 1.9.1' + gem 'rubocop-rails_config', '>= 1.9.2' gem 'rubocop-rspec', '>= 2.1.0' gem 'json-schema-rspec' end -gem "kredis", "~> 1.3" +gem "kredis", "~> 1.4", ">= 1.4.0" diff --git a/Gemfile.lock b/Gemfile.lock index b1cdbee0..9486cae0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,67 +1,67 @@ GEM remote: https://rubygems.org/ specs: - actioncable (7.0.2.3) - actionpack (= 7.0.2.3) - activesupport (= 7.0.2.3) + actioncable (7.0.7.2) + actionpack (= 7.0.7.2) + activesupport (= 7.0.7.2) nio4r (~> 2.0) websocket-driver (>= 0.6.1) - actionmailbox (7.0.2.3) - actionpack (= 7.0.2.3) - activejob (= 7.0.2.3) - activerecord (= 7.0.2.3) - activestorage (= 7.0.2.3) - activesupport (= 7.0.2.3) + actionmailbox (7.0.7.2) + actionpack (= 7.0.7.2) + activejob (= 7.0.7.2) + activerecord (= 7.0.7.2) + activestorage (= 7.0.7.2) + activesupport (= 7.0.7.2) mail (>= 2.7.1) net-imap net-pop net-smtp - actionmailer (7.0.2.3) - actionpack (= 7.0.2.3) - actionview (= 7.0.2.3) - activejob (= 7.0.2.3) - activesupport (= 7.0.2.3) + actionmailer (7.0.7.2) + actionpack (= 7.0.7.2) + actionview (= 7.0.7.2) + activejob (= 7.0.7.2) + activesupport (= 7.0.7.2) mail (~> 2.5, >= 2.5.4) net-imap net-pop net-smtp rails-dom-testing (~> 2.0) - actionpack (7.0.2.3) - actionview (= 7.0.2.3) - activesupport (= 7.0.2.3) - rack (~> 2.0, >= 2.2.0) + actionpack (7.0.7.2) + actionview (= 7.0.7.2) + activesupport (= 7.0.7.2) + rack (~> 2.0, >= 2.2.4) rack-test (>= 0.6.3) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.2.0) - actiontext (7.0.2.3) - actionpack (= 7.0.2.3) - activerecord (= 7.0.2.3) - activestorage (= 7.0.2.3) - activesupport (= 7.0.2.3) + actiontext (7.0.7.2) + actionpack (= 7.0.7.2) + activerecord (= 7.0.7.2) + activestorage (= 7.0.7.2) + activesupport (= 7.0.7.2) globalid (>= 0.6.0) nokogiri (>= 1.8.5) - actionview (7.0.2.3) - activesupport (= 7.0.2.3) + actionview (7.0.7.2) + activesupport (= 7.0.7.2) builder (~> 3.1) erubi (~> 1.4) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.1, >= 1.2.0) - activejob (7.0.2.3) - activesupport (= 7.0.2.3) + activejob (7.0.7.2) + activesupport (= 7.0.7.2) globalid (>= 0.3.6) - activemodel (7.0.2.3) - activesupport (= 7.0.2.3) - activerecord (7.0.2.3) - activemodel (= 7.0.2.3) - activesupport (= 7.0.2.3) - activestorage (7.0.2.3) - actionpack (= 7.0.2.3) - activejob (= 7.0.2.3) - activerecord (= 7.0.2.3) - activesupport (= 7.0.2.3) + activemodel (7.0.7.2) + activesupport (= 7.0.7.2) + activerecord (7.0.7.2) + activemodel (= 7.0.7.2) + activesupport (= 7.0.7.2) + activestorage (7.0.7.2) + actionpack (= 7.0.7.2) + activejob (= 7.0.7.2) + activerecord (= 7.0.7.2) + activesupport (= 7.0.7.2) marcel (~> 1.0) mini_mime (>= 1.1.0) - activesupport (7.0.2.3) + activesupport (7.0.7.2) concurrent-ruby (~> 1.0, >= 1.0.2) i18n (>= 1.6, < 2) minitest (>= 5.1) @@ -75,20 +75,22 @@ GEM graphql (>= 1.7.0, < 2) ast (2.4.2) backport (1.2.0) + base64 (0.1.1) benchmark (0.2.0) benchmark-ips (2.10.0) brotli (0.4.0) builder (3.2.4) - bullet (7.0.1) + bullet (7.0.7) activesupport (>= 3.0.0) uniform_notifier (~> 1.11) byebug (11.1.3) cld3 (3.4.3) ffi (>= 1.1.0, < 1.16.0) coderay (1.1.3) - concurrent-ruby (1.1.10) - connection_pool (2.3.0) + concurrent-ruby (1.2.2) + connection_pool (2.4.1) crass (1.0.6) + date (3.3.3) dead_end (3.1.1) derailed_benchmarks (2.1.1) benchmark-ips (~> 2) @@ -103,7 +105,6 @@ GEM ruby-statistics (>= 2.1) thor (>= 0.19, < 2) diff-lcs (1.5.0) - digest (3.1.0) docile (1.4.0) e2mmap (0.1.0) elastic-transport (8.0.0) @@ -121,7 +122,7 @@ GEM elasticsearch-transport (7.17.1) faraday (~> 1) multi_json - erubi (1.10.0) + erubi (1.12.0) ethon (0.15.0) ffi (>= 1.15.0) factory_bot (6.2.1) @@ -155,7 +156,7 @@ GEM ffi (1.15.5) get_process_mem (0.2.7) ffi (~> 1.0) - globalid (1.0.0) + globalid (1.1.0) activesupport (>= 5.0) graphql (1.11.4) graphql-schema_comparator (1.1.1) @@ -165,9 +166,10 @@ GEM hashie (5.0.0) heapy (0.2.0) thor - i18n (1.10.0) + i18n (1.14.1) concurrent-ruby (~> 1.0) jaro_winkler (1.5.4) + json (2.6.3) json-schema (2.8.1) addressable (>= 2.4) json-schema-rspec (0.0.4) @@ -177,48 +179,48 @@ GEM rexml kramdown-parser-gfm (1.1.0) kramdown (~> 2.0) - kredis (1.3.0.1) + kredis (1.5.0) + activemodel (>= 6.0.0) activesupport (>= 6.0.0) redis (>= 4.2, < 6) - loofah (2.19.1) + language_server-protocol (3.17.0.3) + loofah (2.21.3) crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.1) + nokogiri (>= 1.12.0) + mail (2.8.1) mini_mime (>= 0.1.1) + net-imap + net-pop + net-smtp marcel (1.0.2) memory_profiler (1.0.0) method_source (1.0.0) mini_histogram (0.3.1) - mini_mime (1.1.2) - mini_portile2 (2.8.0) - minitest (5.15.0) + mini_mime (1.1.5) + mini_portile2 (2.8.4) + minitest (5.19.0) multi_json (1.15.0) multipart-post (2.1.1) - net-imap (0.2.3) - digest + net-imap (0.3.7) + date net-protocol - strscan - net-pop (0.1.1) - digest + net-pop (0.1.2) net-protocol + net-protocol (0.2.1) timeout - net-protocol (0.1.3) - timeout - net-smtp (0.3.1) - digest + net-smtp (0.3.3) net-protocol - timeout - nio4r (2.5.8) - nokogiri (1.13.10) - mini_portile2 (~> 2.8.0) + nio4r (2.5.9) + nokogiri (1.15.4) + mini_portile2 (~> 2.8.2) racc (~> 1.4) oj (3.13.11) oj_mimic_json (1.0.1) - pagy (5.10.1) - activesupport - parallel (1.22.1) - parser (3.1.1.0) + pagy (6.0.4) + parallel (1.23.0) + parser (3.2.2.3) ast (~> 2.4.1) + racc pg (1.3.5) pluginator (1.5.0) pre-commit (0.39.0) @@ -231,64 +233,66 @@ GEM public_suffix (4.0.6) puma (4.3.12) nio4r (~> 2.0) - racc (1.6.1) - rack (2.2.3) + racc (1.7.1) + rack (2.2.8) rack-brotli (1.2.0) brotli (>= 0.1.7) rack (>= 1.4) rack-cors (1.1.1) rack (>= 2.0.0) - rack-test (1.1.0) - rack (>= 1.0, < 3) - rails (7.0.2.3) - actioncable (= 7.0.2.3) - actionmailbox (= 7.0.2.3) - actionmailer (= 7.0.2.3) - actionpack (= 7.0.2.3) - actiontext (= 7.0.2.3) - actionview (= 7.0.2.3) - activejob (= 7.0.2.3) - activemodel (= 7.0.2.3) - activerecord (= 7.0.2.3) - activestorage (= 7.0.2.3) - activesupport (= 7.0.2.3) + rack-test (2.1.0) + rack (>= 1.3) + rails (7.0.7.2) + actioncable (= 7.0.7.2) + actionmailbox (= 7.0.7.2) + actionmailer (= 7.0.7.2) + actionpack (= 7.0.7.2) + actiontext (= 7.0.7.2) + actionview (= 7.0.7.2) + activejob (= 7.0.7.2) + activemodel (= 7.0.7.2) + activerecord (= 7.0.7.2) + activestorage (= 7.0.7.2) + activesupport (= 7.0.7.2) bundler (>= 1.15.0) - railties (= 7.0.2.3) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) + railties (= 7.0.7.2) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest nokogiri (>= 1.6) - rails-html-sanitizer (1.4.4) - loofah (~> 2.19, >= 2.19.1) - railties (7.0.2.3) - actionpack (= 7.0.2.3) - activesupport (= 7.0.2.3) + rails-html-sanitizer (1.6.0) + loofah (~> 2.21) + nokogiri (~> 1.14) + railties (7.0.7.2) + actionpack (= 7.0.7.2) + activesupport (= 7.0.7.2) method_source rake (>= 12.2) thor (~> 1.0) zeitwerk (~> 2.5) rainbow (3.1.1) rake (13.0.6) - redis (5.0.6) + redis (5.0.7) redis-client (>= 0.9.0) - redis-client (0.14.0) + redis-client (0.16.0) connection_pool - regexp_parser (2.2.1) + regexp_parser (2.8.1) reverse_markdown (2.1.1) nokogiri - rexml (3.2.5) + rexml (3.2.6) rspec (3.11.0) rspec-core (~> 3.11.0) rspec-expectations (~> 3.11.0) rspec-mocks (~> 3.11.0) rspec-core (3.11.0) rspec-support (~> 3.11.0) - rspec-expectations (3.11.0) + rspec-expectations (3.11.1) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.11.0) - rspec-mocks (3.11.1) + rspec-mocks (3.11.2) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.11.0) - rspec-rails (5.0.2) + rspec-rails (5.0.3) actionpack (>= 5.2) activesupport (>= 5.2) railties (>= 5.2) @@ -296,45 +300,51 @@ GEM rspec-expectations (~> 3.10) rspec-mocks (~> 3.10) rspec-support (~> 3.10) - rspec-support (3.11.0) - rubocop (1.26.1) + rspec-support (3.11.1) + rubocop (1.56.1) + base64 (~> 0.1.1) + json (~> 2.3) + language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 3.1.0.0) + parser (>= 3.2.2.3) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) - rexml - rubocop-ast (>= 1.16.0, < 2.0) + rexml (>= 3.2.5, < 4.0) + rubocop-ast (>= 1.28.1, < 2.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 3.0) - rubocop-ast (1.16.0) - parser (>= 3.1.1.0) - rubocop-minitest (0.19.0) - rubocop (>= 0.90, < 2.0) - rubocop-packaging (0.5.1) - rubocop (>= 0.89, < 2.0) - rubocop-performance (1.13.3) + unicode-display_width (>= 2.4.0, < 3.0) + rubocop-ast (1.29.0) + parser (>= 3.2.1.0) + rubocop-md (1.2.0) + rubocop (>= 1.0) + rubocop-minitest (0.31.0) + rubocop (>= 1.39, < 2.0) + rubocop-packaging (0.5.2) + rubocop (>= 1.33, < 2.0) + rubocop-performance (1.19.0) rubocop (>= 1.7.0, < 2.0) rubocop-ast (>= 0.4.0) - rubocop-rails (2.14.2) + rubocop-rails (2.20.2) activesupport (>= 4.2.0) rack (>= 1.1) - rubocop (>= 1.7.0, < 2.0) - rubocop-rails_config (1.9.1) + rubocop (>= 1.33.0, < 2.0) + rubocop-rails_config (1.13.0) railties (>= 5.0) - rubocop (>= 1.25.1) - rubocop-ast (>= 1.0.1) - rubocop-minitest (~> 0.15) + rubocop (>= 1.48.0) + rubocop-ast (>= 1.26.0) + rubocop-md + rubocop-minitest (~> 0.22) rubocop-packaging (~> 0.5) rubocop-performance (~> 1.11) rubocop-rails (~> 2.0) rubocop-rspec (2.9.0) rubocop (~> 1.19) - ruby-progressbar (1.11.0) + ruby-progressbar (1.13.0) ruby-statistics (3.0.0) ruby2_keywords (0.0.5) sentry-raven (3.1.2) faraday (>= 1.0) - shoulda-matchers (5.1.0) + shoulda-matchers (5.2.0) activesupport (>= 5.2.0) simplecov (0.21.2) docile (~> 1.1) @@ -358,27 +368,26 @@ GEM tilt (~> 2.0) yard (~> 0.9, >= 0.9.24) stackprof (0.2.19) - strscan (3.0.1) - thor (1.2.1) + thor (1.2.2) tilt (2.0.10) - timeout (0.2.0) - turbostreamer (1.9.0) + timeout (0.4.0) + turbostreamer (1.10.0) activesupport (>= 5.0.0) typhoeus (1.4.0) ethon (>= 0.9.0) - tzinfo (2.0.4) + tzinfo (2.0.6) concurrent-ruby (~> 1.0) tzinfo-data (1.2022.1) tzinfo (>= 1.0.0) - unicode-display_width (2.1.0) + unicode-display_width (2.4.2) uniform_notifier (1.16.0) webrick (1.7.0) - websocket-driver (0.7.5) + websocket-driver (0.7.6) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.5) yard (0.9.27) webrick (~> 1.7.0) - zeitwerk (2.5.4) + zeitwerk (2.6.11) PLATFORMS ruby @@ -387,7 +396,7 @@ DEPENDENCIES annotate apollo-tracing benchmark-ips - bullet + bullet (>= 7.0.2) byebug cld3 (= 3.4.3) derailed_benchmarks @@ -397,10 +406,10 @@ DEPENDENCIES graphql (= 1.11.4) graphql-schema_comparator json-schema-rspec - kredis (~> 1.3) + kredis (~> 1.4, >= 1.4.0) oj oj_mimic_json - pagy + pagy (>= 6.0.0) parallel pg (>= 0.18, < 2.0) pre-commit @@ -408,19 +417,19 @@ DEPENDENCIES puma (~> 4.3, >= 4.3.12) rack-brotli rack-cors - rails (~> 7.0.2, >= 7.0.2.3) + rails (~> 7.0.7, >= 7.0.7.1) rails-html-sanitizer (>= 1.4.4) - rspec-rails (= 5.0.2) + rspec-rails (= 5.0.3) rubocop (>= 1.7.0) - rubocop-rails_config (>= 1.9.1) + rubocop-rails_config (>= 1.9.2) rubocop-rspec (>= 2.1.0) ruby-progressbar sentry-raven - shoulda-matchers (~> 5.1.0) + shoulda-matchers (~> 5.2.0) simplecov solargraph stackprof - turbostreamer (= 1.9) + turbostreamer (= 1.10.0) typhoeus tzinfo-data @@ -428,4 +437,4 @@ RUBY VERSION ruby 3.1.0p0 BUNDLED WITH - 2.3.3 + 2.3.26