{"id":"CVE-2026-25765","published":"2026-02-09T20:30:58Z","modified":"2026-02-10T15:59:26Z","title":"Faraday affected by SSRF via protocol-relative URL host override in build_exclusive_url","vendor":"lostisland","product":"faraday","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0039,"percentile":0.33968,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/lostisland/faraday/security/advisories/GHSA-33mh-2634-fwr2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/lostisland/faraday/commit/a6d3a3a0bf59c2ab307d0abd91bc126aef5561bc","tags":["x_refsource_MISC"]},{"url":"https://github.com/lostisland/faraday/releases/tag/v2.14.1","tags":["x_refsource_MISC"]}],"priority":{"score":10.9,"factors":[{"name":"EPSS percentile","points":6.79},{"name":"CVSS severity","points":4.06}]},"vendorSlug":"lostisland","affectedVersions":[{"vendor":"lostisland","product":"faraday","versions":["< 2.14.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-02-10T15:39:44.597673Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"faraday","vulnerableRanges":[">=2.0.0, <2.14.1",">=1.0.0, <1.10.5"],"patched":["2.14.1","1.10.5"],"from":["GHSA-33mh-2634-fwr2"],"provenance":"source"}],"summary":{"text":"Faraday, the HTTP client abstraction library, has a flaw in its build_exclusive_url method (lib/faraday/connection.rb) where URI#merge lets a protocol-relative path such as //host/path override the connection's base host. An attacker can exploit this over the network without authentication or user interaction, provided the application passes user-controlled input into Faraday's request methods (get, post, build_url, or similar), redirecting requests to an arbitrary host and enabling server-side request forgery.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:59:24Z"},"euvd":{"id":"EUVD-2026-6851","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-lostisland-faraday-cve-2026-25765","children":[{"from":"CVE-2026-25765","to":"CVE-2026-33637","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-33mh-2634-fwr2","via":"related"},{"kind":"osv-related","provenance":"source","id":"GHSA-5rv5-xj5j-3484","via":"reference","url":"https://github.com/advisories/GHSA-33mh-2634-fwr2"},{"kind":"version-step","provenance":"source","package":"RubyGems:faraday","fromFixed":"2.14.1","toFixed":"2.14.2","daysApart":99},{"kind":"similar","provenance":"machine","score":0.6,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2026-25765","published":"2026-02-09","fixed":"2.14.1","kev":false},{"cve":"CVE-2026-33637","published":"2026-05-19","fixed":"2.14.2","kev":false},{"cve":"CVE-2026-54297","published":"2026-06-24","fixed":"2.14.3","kev":false,"link":{"from":"CVE-2026-25765","to":"CVE-2026-54297","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:faraday","fromFixed":"1.10.5","toFixed":"1.10.6","daysApart":135}]}}],"package":"RubyGems:faraday"}}