Skip to content
OpenAdvisories

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.

Affected products

VendorProductAffectedFixed
lostisland faraday < 2.14.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ruby-faraday 2.14.1-1 —
Debian 13 ruby-faraday No fix yet —
Debian 12 ruby-faraday No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 ruby-faraday No fix yet —
Ubuntu 26.04 LTS ruby-faraday No fix yet —
Ubuntu 25.10 ruby-faraday No fix yet —
Ubuntu 24.04 LTS ruby-faraday No fix yet —
Ubuntu 22.04 LTS ruby-faraday No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS ruby-faraday No fix yet —
Ubuntu 18.04 LTS ruby-faraday No fix yet —
Ubuntu 16.04 LTS ruby-faraday No fix yet —
Ubuntu 14.04 LTS ruby-faraday No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 rubygem-faraday 2.7.10-2 —
Azure Linux 2 (CBL-Mariner) rubygem-faraday No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling cinc-auditor 7.0.95-r6 —
Wolfi rolling kube-fluentd-operator 1.18.2-r56 —
Wolfi rolling kube-logging-operator-fluentd-outputs 6.3.2-r3 —
Wolfi rolling logstash-9.3 +2 9.3.1-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems faraday >= 2.0.0, < 2.14.1 2.14.1 GHSA-33mh-2634-fwr2
RubyGems faraday >= 1.0.0, < 1.10.5 1.10.5 GHSA-33mh-2634-fwr2

Advisories 1

References