Skip to content

Make webrick dependency optional#598

Open
odlp wants to merge 1 commit into
rubycdp:mainfrom
odlp:optional-webrick
Open

Make webrick dependency optional#598
odlp wants to merge 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
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.

1 participant