TerminalAddict,
We found a vulnerable dependency in a repository you have security alert access to.
TerminalAddict/repo-name
Known high severity security vulnerability detected in rack < 2.1.4 defined in Gemfile.lock.
You have Dependabot security updates enabled, so we are attempting to create a pull request to update the vulnerable dependency
I edit Gemfile.lock
it was rack (1.6.13), I update to rack (2.2.3)
then I do bundle update --all
output: Using rack 1.6.13 (was 2.2.3)
Anybody know how to deal with this Dependabot vulnerability ?
not sure if this could help? I think this is a list of installed gems that use rack
paul@spyro:~/gems/gems$ grep -R \'rack\' * | grep -v ^rack
addressable-2.6.0/Gemfile: gem 'rack', '< 2', :require => false
addressable-2.6.0/Gemfile: gem 'rack', :require => false
addressable-2.7.0/Gemfile: gem 'rack', '< 2', :require => false
addressable-2.7.0/Gemfile: gem 'rack', :require => false
bundler-2.1.4/man/bundle-open.ronn: bundle open 'rack'
bundler-2.1.4/man/bundle-open.ronn:Will open the source directory for the 'rack' gem in your bundle.
bundler-2.1.4/man/bundle-inject.ronn: bundle inject 'rack' '> 0'
bundler-2.1.4/man/bundle-inject.ronn:This will inject the 'rack' gem with a version greater than 0 in your
bundler-2.1.4/man/bundle-open.1.txt: bundle open 'rack'
bundler-2.1.4/man/bundle-open.1.txt: Will open the source directory for the 'rack' gem in your bundle.
bundler-2.1.4/man/bundle-inject.1.txt: bundle inject 'rack' '> 0'
bundler-2.1.4/man/bundle-inject.1.txt: This will inject the 'rack' gem with a version greater than 0 in your
bundler-2.2.2/lib/bundler/man/bundle-open.1.ronn: bundle open 'rack'
bundler-2.2.2/lib/bundler/man/bundle-open.1.ronn:Will open the source directory for the 'rack' gem in your bundle.
bundler-2.2.2/lib/bundler/man/bundle-inject.1.ronn: bundle inject 'rack' '> 0'
bundler-2.2.2/lib/bundler/man/bundle-inject.1.ronn:This will inject the 'rack' gem with a version greater than 0 in your
rubygems-update-3.2.2/bundler/lib/bundler/man/bundle-open.1.ronn: bundle open 'rack'
rubygems-update-3.2.2/bundler/lib/bundler/man/bundle-open.1.ronn:Will open the source directory for the 'rack' gem in your bundle.
rubygems-update-3.2.2/bundler/lib/bundler/man/bundle-inject.1.ronn: bundle inject 'rack' '> 0'
rubygems-update-3.2.2/bundler/lib/bundler/man/bundle-inject.1.ronn:This will inject the 'rack' gem with a version greater than 0 in your
I can also remove the gemfile.lock of course, but as soon as I bundle install everything reverts back to jekyll-assets 1.0.0
Using jekyll 4.2.0 from https://github.com/jekyll/jekyll.git (at master@ca03e7a)
Using jekyll-archives 2.2.1 from https://github.com/jekyll/jekyll-archives (at master@9d3d3cb)
Using jekyll-assets 1.0.0
So nope, that didn’t do it
update: I’ve just found something
jekyll-assets (~> 3.0) x86_64-linux was resolved to 3.0.12, which depends on
jekyll (>= 3.5, < 4.0)
Which brings me back to a previous statement … I don’t understand what “pinning” means.
I’m going to raise an issue on GH with jekyll-assets I think
# Unpinned, ie free floating. Unpredictable
gem 'jekyll-assets'
# Pinned. Locked within a range.
gem 'jekyll-assets', '~> 3.0'
You can run the gem command in the shell but that is for system or user level gems.
Since you are dealing with a project level of gems, you want to make sure you run
bundle install
And that will run your gem install lines for you, from the Gemfile
Yes you are right. The RubyGems listing says it needs Jekyll < 4.0
I find that is okay. The main benefit for me for Jekyll 4 is the cache for building means by 1 minute build on 3.9 became like 1 second. Plus you can use the link liquid tag without prefacing it with {{ site.baseurl }} - that is the only material thing to adjust for when I switch.
Well there are some more Jekyll 4 only features I came across, but I didn’t get into them and I do fine without them.
See if the gem is maintained and if there are any issues about Jekyll 4 support. Maybe it is simple, maybe complicated. Maybe there are forks which support Jekyll 4.