Commit b1fc5d6
committed
Verify hostname by default
This was disabled years ago while we were adding support for it,
but it has been working for some time now. This patch re-enables
hostname verification by default.
This addresses CVE-2025-46551 and GHSA-72qj-48g4-5xgx.
Users can work around this by applying this patch manually to their
own jruby-openssl and jruby installs, or by re-enabling hostname
verification with the following code early in application boot:
```ruby
require 'openssl'
OpenSSL::SSL::SSLContext::DEFAULT_PARAMS[:verify_hostname] = true
```1 parent 97798e0 commit b1fc5d6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments