{"id":"CVE-2026-25765","summary":"Faraday affected by SSRF via protocol-relative URL host override in build_exclusive_url","details":"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.","aliases":["GHSA-33mh-2634-fwr2"],"modified":"2026-04-02T13:17:32.498310Z","published":"2026-02-09T20:30:58.774Z","related":["CGA-v2w2-v3xj-v37m"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25765.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-918"]},"references":[{"type":"WEB","url":"https://github.com/lostisland/faraday/releases/tag/v2.14.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25765.json"},{"type":"ADVISORY","url":"https://github.com/lostisland/faraday/security/advisories/GHSA-33mh-2634-fwr2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25765"},{"type":"FIX","url":"https://github.com/lostisland/faraday/commit/a6d3a3a0bf59c2ab307d0abd91bc126aef5561bc"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/lostisland/faraday","events":[{"introduced":"0a5714e8c89bb0aacf414ed00e70b9d70b4097e2"},{"fixed":"16cbd38ef252d25dedf416a4d2510a2f3db10c87"}]}],"versions":["v2.0.0","v2.0.1","v2.1.0","v2.10.0","v2.10.1","v2.11.0","v2.12.0","v2.12.1","v2.12.2","v2.12.3","v2.13.0","v2.13.1","v2.13.2","v2.13.3","v2.13.4","v2.14.0","v2.2.0","v2.3.0","v2.4.0","v2.5.0","v2.5.1","v2.5.2","v2.6.0","v2.7.0","v2.7.1","v2.7.10","v2.7.11","v2.7.12","v2.7.2","v2.7.3","v2.7.4","v2.7.5","v2.7.6","v2.7.7","v2.7.8","v2.7.9","v2.8.0","v2.8.1","v2.9.0","v2.9.1","v2.9.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-25765.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N"}]}