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.

Severity (CVSS 3.1)5.8Medium
Exploit odds (30 days)0.4%top 66.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12ruby-faradayno fix listedDEBIAN-CVE-2026-25765
Debian:13ruby-faradayno fix listedDEBIAN-CVE-2026-25765
Debian:14ruby-faraday2.14.1-1DEBIAN-CVE-2026-25765
RubyGemsfaraday2.14.1GHSA-33mh-2634-fwr2
RubyGemsfaraday1.10.5GHSA-33mh-2634-fwr2
Ubuntu:22.04:LTSruby-faradayno fix listedUBUNTU-CVE-2026-25765
Ubuntu:24.04:LTSruby-faradayno fix listedUBUNTU-CVE-2026-25765
Ubuntu:25.10ruby-faradayno fix listedUBUNTU-CVE-2026-25765
Ubuntu:26.04:LTSruby-faradayno fix listedUBUNTU-CVE-2026-25765
Ubuntu:26.10ruby-faradayno fix listedUBUNTU-CVE-2026-25765

Affected products (as reported)

VendorProductVersions
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

References