Vulnerability · Published Feb 9, 2026 · Assigned by GitHub_M
CVE-2026-25765Faraday affected by SSRF via protocol-relative URL host override in build_exclusive_url
Medium 5.8
In plain English
A medium-severity server-side request forgery in faraday from lostisland. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Faraday is an HTTP client library abstraction layer that provides a common interface over many adapters. Prior to 2.14.1, Faraday's build_exclusive_url method (in lib/faraday/connection.rb) uses Ruby's URI#merge to combine the connection's base URL with a user-supplied path. Per RFC 3986, protocol-relative URLs (e.g. //evil.com/path) are treated as network-path references that override the base URL's host/authority component. This means that if any application passes user-controlled input to Faraday's get(), post(), build_url(), or other request methods, an attacker can supply a protocol-relative URL like //attacker.com/endpoint to redirect the request to an arbitrary host, enabling Server-Side Request Forgery (SSRF). This vulnerability is fixed in 2.14.1.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ruby-faraday | no fix listed | DEBIAN-CVE-2026-25765 |
| Debian:13 | ruby-faraday | no fix listed | DEBIAN-CVE-2026-25765 |
| Debian:14 | ruby-faraday | 2.14.1-1 | DEBIAN-CVE-2026-25765 |
| RubyGems | faraday | 2.14.1 | GHSA-33mh-2634-fwr2 |
| RubyGems | faraday | 1.10.5 | GHSA-33mh-2634-fwr2 |
| Ubuntu:22.04:LTS | ruby-faraday | no fix listed | UBUNTU-CVE-2026-25765 |
| Ubuntu:24.04:LTS | ruby-faraday | no fix listed | UBUNTU-CVE-2026-25765 |
| Ubuntu:25.10 | ruby-faraday | no fix listed | UBUNTU-CVE-2026-25765 |
| Ubuntu:26.04:LTS | ruby-faraday | no fix listed | UBUNTU-CVE-2026-25765 |
| Ubuntu:26.10 | ruby-faraday | no fix listed | UBUNTU-CVE-2026-25765 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| lostisland | faraday | < 2.14.1 |
Weakness: CWE-918 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N