|
| 1 | +--- |
| 2 | +gem: faraday |
| 3 | +cve: 2026-33637 |
| 4 | +ghsa: 5rv5-xj5j-3484 |
| 5 | +url: https://github.com/lostisland/faraday/security/advisories/GHSA-5rv5-xj5j-3484 |
| 6 | +title: Faraday has a possible incomplete fix for GHSA-33mh-2634-fwr2 - |
| 7 | + protocol-relative URI objects still bypass host scoping |
| 8 | +date: 2026-05-18 |
| 9 | +description: | |
| 10 | + ## Summary |
| 11 | +
|
| 12 | + `Faraday::Connection#build_exclusive_url` still allows protocol-relative |
| 13 | + host override when the request target is provided as a `URI` object |
| 14 | + instead of a `String`. This bypasses the February 2026 fix for |
| 15 | + `GHSA-33mh-2634-fwr2` and can redirect a request built from a fixed-base |
| 16 | + `Faraday::Connection` to an attacker-controlled host while preserving |
| 17 | + connection-scoped headers such as `Authorization`. |
| 18 | +
|
| 19 | + ## Supporting Materials |
| 20 | +
|
| 21 | + - Existing advisory for the original string-based issue: GHSA-33mh-2634-fwr2 |
| 22 | + - Existing CVE for the original string-based issue: CVE-2026-25765 |
| 23 | + - Existing regression tests for the string-only fix: |
| 24 | + - spec/faraday/connection_spec.rb:314-345 |
| 25 | + - Existing test proving supported URI request input: |
| 26 | + - spec/faraday/request_spec.rb:26-31 |
| 27 | +
|
| 28 | + ## Impact |
| 29 | +
|
| 30 | + The direct consequence is off-host request forgery from code paths |
| 31 | + that believe they are constrained to a fixed base URL. If the |
| 32 | + connection carries default headers or query parameters, those |
| 33 | + values are forwarded to the attacker-selected host. |
| 34 | +cvss_v3: 0.0 |
| 35 | +unaffected_versions: |
| 36 | + - "< 2.0.0" |
| 37 | +patched_versions: |
| 38 | + - ">= 2.14.2" |
| 39 | +related: |
| 40 | + url: |
| 41 | + - https://nvd.nist.gov/vuln/detail/CVE-2026-33637 |
| 42 | + - https://github.com/lostisland/faraday/releases/tag/v2.14.2 |
| 43 | + - https://github.com/lostisland/faraday/security/advisories/GHSA-5rv5-xj5j-3484 |
| 44 | + - https://github.com/advisories/GHSA-33mh-2634-fwr2 |
| 45 | + - https://github.com/advisories/GHSA-5rv5-xj5j-3484 |
| 46 | +notes: | |
| 47 | + - ZERO CVSS value in GHSA and NVD |
0 commit comments