Skip to content

Make webrick dependency optional - #598

Merged
route merged 1 commit into
rubycdp:mainfrom
odlp:optional-webrick
Jul 27, 2026
Merged

Make webrick dependency optional#598
route merged 1 commit into
rubycdp:mainfrom
odlp:optional-webrick

Conversation

@odlp

@odlp odlp commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

What

This PR proposes making the webrick dependency optional, by removing it from the gemspec. It's only used by Ferrum::Proxy.

This is a breaking change, so user's would have to add webrick to their Gemfile if it's not already present.

Why

Fewer dependencies in our application means less time updating them & less surface area for supply chain attacks / vulnerabilities.

This PR was motivated by the recent CVE found in webrick:

https://nvd.nist.gov/vuln/detail/cve-2026-38969

Notes

Unfortunately Rubygems / Bundler doesn't have an API for specifying optional dependencies:
ruby/rubygems#1811

But the rescue LoadError / informative error message pattern seems fairly widespread as a method of handling optional dependencies in gems.

Only required when Ferrum::Proxy is used
@route
route merged commit 528f442 into rubycdp:main Jul 27, 2026
7 checks passed
@route

route commented Jul 27, 2026

Copy link
Copy Markdown
Member

Looking good, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants