CVE-2026-25765
MEDIUM 5.8CVSS 3.1Faraday affected by SSRF via protocol-relative URL host override in build_exclusive_url
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.
- Published
- 9 Feb 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-918
- Also known as
- GHSA-33mh-2634-fwr2
- Sources
- NVDJSONOSV GHSA-33mh-2634-fwr2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | faraday_project | faradaycpe:2.3:a:faraday_project:faraday:*:*:*:*:*:*:*:* |
>= 1.0.0, < 1.10.5 | 1.10.5 |
| NVD | faraday_project | faradaycpe:2.3:a:faraday_project:faraday:*:*:*:*:*:*:*:* |
>= 2.0.0, < 2.14.1 | 2.14.1 |
| OSV | RubyGems | faraday | >= 2.0.0, < 2.14.1 | 2.14.1 |
| OSV | RubyGems | faraday | >= 1.0.0, < 1.10.5 | 1.10.5 |
References
- https://github.com/lostisland/faraday/commit/a6d3a3a0bf59c2ab307d0abd91bc126aef5561bc · Patch, WEB
- https://github.com/lostisland/faraday/releases/tag/v2.14.1 · Product, Release Notes, WEB
- https://github.com/lostisland/faraday/security/advisories/GHSA-33mh-2634-fwr2 · Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-25765 · ADVISORY
- https://github.com/lostisland/faraday/pull/1569 · WEB
- https://github.com/lostisland/faraday · PACKAGE
- https://github.com/lostisland/faraday/releases/tag/v1.10.5 · WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/faraday/CVE-2026-25765.yml · WEB
- https://www.rfc-editor.org/rfc/rfc3986#section-5.2.2 · WEB
- https://www.rfc-editor.org/rfc/rfc3986#section-5.4 · WEB
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 9 Feb 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 9 Feb 2026)