# CVE-2026-25765: Faraday affected by SSRF via protocol-relative URL host override in build_exclusive_url

- Severity: Medium 5.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Published: 2026-02-09T20:30:58.774Z
- Modified: 2026-09-10T03:50:33.817Z
- Also known as: GHSA-33mh-2634-fwr2
- Related: CVE-2026-33637
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- lostisland faraday: < 2.14.1
- faraday (RubyGems): from 2.0.0 before 2.14.1; from 1.0.0 before 1.10.5
- faraday_project faraday: from 1.0.0 before 1.10.5; from 2.0.0 before 2.14.1

## Every score

- GitHub_M: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N`
- GitHub: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N`

## References

- <https://github.com/lostisland/faraday/security/advisories/GHSA-33mh-2634-fwr2> (mitigation, vendor-advisory, web)
- <https://github.com/lostisland/faraday/commit/a6d3a3a0bf59c2ab307d0abd91bc126aef5561bc> (patch, web)
- <https://github.com/lostisland/faraday/releases/tag/v2.14.1> (product, release-notes, 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)

## Sources

- CVE List: [CVE-2026-25765](https://www.cve.org/CVERecord?id=CVE-2026-25765), CVE Terms of Use, modified 2026-02-10
- GitHub Advisory Database: [GHSA-33mh-2634-fwr2](https://github.com/advisories/GHSA-33mh-2634-fwr2), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-25765](https://nvd.nist.gov/vuln/detail/CVE-2026-25765), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-25765 · Whole record: https://cve.day/CVE-2026-25765.json · Rebuilt by cve.day 2026-11-25T22:59:13.675Z
