Server-side Request Forgery (SSRF) Affecting faraday package, versions <2.14.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-FARADAY-15253521
  • published10 Feb 2026
  • disclosed9 Feb 2026
  • creditAman Rawat

Introduced: 9 Feb 2026

NewCVE-2026-25765  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade faraday to version 2.14.1 or higher.

Overview

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the build_exclusive_url function in the connection.rb‎ file. An attacker can cause requests to be sent to arbitrary hosts by supplying a protocol-relative URL as input.

Workaround

This vulnerability can be mitigated by validating and sanitizing user-controlled input before passing it to request methods, such as rejecting or stripping input that starts with // followed by a non-/ character, using an allowlist of permitted path prefixes, or prepending ./ to all user-supplied paths.

CVSS Base Scores

version 4.0
version 3.1