CVE-2026-25765 Details
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.
A Server-Side Request Forgery (SSRF) vulnerability has been identified in the Faraday HTTP client library, affecting versions through 2.14.0. The issue arises in the 'build_exclusive_url' method, where protocol-relative URLs can override the base URL's host, allowing attackers to redirect requests to arbitrary hosts. This vulnerability is exploitable when user-controlled input is passed to Faraday's request methods.
Users are advised to upgrade to Faraday version 2.14.1 or later, where this vulnerability has been patched. If an immediate upgrade is not possible, validate and sanitize user input before passing it to Faraday's request methods. Reject or strip input that starts with '//' followed by a non-'/' character, use an allowlist of permitted path prefixes, or prepend './' to user-supplied paths before passing them to Faraday.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 10, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/lostisland/faraday/commit/a6d3a3a0bf59c2ab307d0abd91bc126aef5561bc | [email protected] | Patch |
| https://github.com/lostisland/faraday/releases/tag/v2.14.1 | [email protected] | ProductRelease Notes |
| https://github.com/lostisland/faraday/security/advisories/GHSA-33mh-2634-fwr2 | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| faraday project faraday | >= 1.0.0, < 1.10.5 >= 2.0.0, < 2.14.1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 20, 2026 | Initial Analysis | [email protected] |
| Feb 9, 2026 | New CVE Received | [email protected] |