5eb9a6925b (master): [ruby/rubygems] Keep lockfile parsing from loading Bundler source plugins

0 views
Skip to first unread message

Hiroshi SHIBATA

unread,
Aug 27, 2026, 7:38:06 PM (4 days ago) Aug 27
to ruby...@g.ruby-lang.org
Hiroshi SHIBATA 2026-08-26 04:57:32 +0000 (Wed, 26 Aug 2026)

New Revision: 5eb9a6925b

https://github.com/ruby/ruby/commit/5eb9a6925b

Log:
[ruby/rubygems] Keep lockfile parsing from loading Bundler source plugins

A PLUGIN SOURCE section sends Bundler::Plugin.from_lock looking for the
plugin that handles it, and finding one loads and runs that plugin's
`plugins.rb`. The plugin index is read from the lockfile directory, so a
repository could run code just by being installed from with
`gem install -g`. Nothing here can use a plugin source anyway.

https://github.com/ruby/rubygems/commit/1b9f1e166c

Co-Authored-By: Claude Fable 5 <nor...@anthropic.com>

Modified files:
lib/rubygems/request_set.rb
test/rubygems/test_gem_request_set.rb
Reply all
Reply to author
Forward
0 new messages