Skip to content
Heist/ feed
Back to feed
Medium

Faraday affected by SSRF via protocol-relative URL host override in build_exclusive_url

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-25765
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 02:13 UTC · Revision 1

Source evidence

Faraday affected by SSRF via protocol-relative URL host override in build_exclusive_url

core-osv · Original source

Published 9 Feb 2026, 20:30 UTC

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.

osv:CVE-2026-25765
Complete source record
{
  "id": "53c171e5f7bb6ee725027a6ada076058a22ebce62b9a9dd6c067971e0c7f20d1",
  "url": "https://osv.dev/vulnerability/CVE-2026-25765",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Faraday affected by SSRF via protocol-relative URL host override in build_exclusive_url",
    "summary": "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.",
    "evidence": "osv:CVE-2026-25765",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-25765",
      "aliases": [
        "CVE-2026-25765",
        "GHSA-33mh-2634-fwr2"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/lostisland/faraday",
              "type": "GIT",
              "events": [
                {
                  "introduced": "ff9dc1d1219a1bbdba95a9a4cf5d135b97247ee2"
                },
                {
                  "fixed": "5c1d68aae6020c7a5398147356e5a42ca205bf80"
                },
                {
                  "introduced": "0a5714e8c89bb0aacf414ed00e70b9d70b4097e2"
                },
                {
                  "fixed": "16cbd38ef252d25dedf416a4d2510a2f3db10c87"
                },
                {
                  "fixed": "a6d3a3a0bf59c2ab307d0abd91bc126aef5561bc"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:faraday_project:faraday:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.0.0"
                      },
                      {
                        "fixed": "1.10.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:faraday_project:faraday:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.0.0"
                      },
                      {
                        "fixed": "2.14.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "a6d3a3a0bf59c2ab307d0abd91bc126aef5561bc"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "16cbd38ef252d25dedf416a4d2510a2f3db10c87"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v2.14.1"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.10.4",
            "v2.14.0",
            "v2.13.4",
            "v2.13.3",
            "v2.13.2",
            "v2.13.1",
            "v2.13.0",
            "v2.12.3",
            "v2.12.2",
            "v2.12.1",
            "v2.12.0",
            "v1.10.3",
            "v2.11.0",
            "v2.10.1",
            "v2.10.0",
            "v2.9.2",
            "v2.9.1",
            "v2.9.0",
            "v2.8.1",
            "v2.8.0",
            "v2.7.12",
            "v2.7.11",
            "v2.7.10",
            "v2.7.9",
            "v2.7.8",
            "v2.7.7",
            "v2.7.6",
            "v2.7.5",
            "v2.7.4",
            "v2.7.3",
            "v1.10.2",
            "v2.7.2",
            "v2.7.1",
            "v2.7.0",
            "v2.6.0",
            "v2.5.2",
            "v2.5.1",
            "v2.5.0",
            "v1.10.1",
            "v1.10.0",
            "v2.4.0",
            "v2.3.0",
            "v1.9.3",
            "v2.2.0",
            "v2.1.0",
            "v1.9.2",
            "v1.9.1",
            "v1.9.0",
            "v2.0.1",
            "v1.8.0",
            "v2.0.0",
            "v1.7.2",
            "v1.7.1",
            "v1.7.0",
            "v1.6.0",
            "v1.5.1",
            "v1.5.0",
            "v1.4.3",
            "v1.4.2",
            "v1.4.1",
            "v1.4.0",
            "v1.3.0",
            "v1.2.0",
            "v1.1.0",
            "v1.0.1",
            "v1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-25765.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:25.297097619Z",
      "provider": "osv",
      "references": [
        "https://github.com/lostisland/faraday/releases/tag/v2.14.1",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25765.json",
        "https://github.com/lostisland/faraday/security/advisories/GHSA-33mh-2634-fwr2",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-25765",
        "https://github.com/lostisland/faraday/commit/a6d3a3a0bf59c2ab307d0abd91bc126aef5561bc"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-918"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25765.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-25765",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 491807,
  "published_at": "2026-02-09T20:30:58.774+00:00"
}