Nixpkgs Security Tracker

Login with GitHub

Suggestions search

With package: rubyPackages_3_2.faraday

Found 1 matching suggestions

Published
updated 1 day, 3 hours ago by @LeSuisse Activity log
  • Created automatic suggestion
  • @LeSuisse removed
    23 packages
    • faraday
    • faraday-cli
    • faraday-agent-dispatcher
    • ocamlPackages.faraday
    • ocamlPackages.faraday-lwt
    • ocamlPackages.faraday-async
    • ocamlPackages_latest.faraday
    • rubyPackages.faraday-net_http
    • ocamlPackages.faraday-lwt-unix
    • ocamlPackages_latest.faraday-lwt
    • python312Packages.faraday-plugins
    • python313Packages.faraday-plugins
    • python314Packages.faraday-plugins
    • rubyPackages_3_1.faraday-net_http
    • rubyPackages_3_2.faraday-net_http
    • ocamlPackages_latest.faraday-async
    • ocamlPackages_latest.faraday-lwt-unix
    • python312Packages.faraday-agent-parameters-types
    • python313Packages.faraday-agent-parameters-types
    • rubyPackages_4_0.faraday-net_http
    • rubyPackages_3_4.faraday-net_http
    • rubyPackages_3_3.faraday-net_http
    • python314Packages.faraday-agent-parameters-types
  • @LeSuisse accepted
  • @LeSuisse published on GitHub
Faraday affected by SSRF via protocol-relative URL host override in build_exclusive_url

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

faraday
  • ==< 2.14.1

Matching in nixpkgs

Ignored packages (23)

Package maintainers

Upstream advisory: https://github.com/lostisland/faraday/security/advisories/GHSA-33mh-2634-fwr2
Upstream patch: https://github.com/lostisland/faraday/commit/a6d3a3a0bf59c2ab307d0abd91bc126aef5561bc