Description
Rack is a modular Ruby web server interface. From 3.0 until 3.1.23 and 3.2.8, Rack::Request#host_with_port, #base_url, and #url can return an attacker-controlled invalid authority from Host, X-Forwarded-Host, or Forwarded: host= verbatim. Applications without an independent host allowlist that use these methods for absolute URLs, redirects, or origin-dependent checks can emit attacker-chosen delimiters, enabling redirect manipulation, string-based allowlist bypass, or unescaped markup reflection. Rails overrides these methods and is not expected to be affected. This issue is fixed in versions 3.1.23 and 3.2.8.
Published: 2026-11-09
Score: 4.8 Medium
EPSS: n/a
KEV: No
Impact: Redirect Manipulation
Action: Patch Immediately
AI Analysis

Impact

Rack, a modular Ruby web server interface, had a flaw in versions 3.0 through 3.1.22 and 3.2.0 through 3.2.7 where the request methods host_with_port, base_url, and url could return the raw, attacker‑controlled value of the Host header or related proxy headers. This allowed an attacker to insert arbitrary delimiters and malformed authorities, enabling redirect manipulation, bypass of string‑based allowlists, and unescaped markup reflection. The weakness is identified as CWE‑1286.

Affected Systems

The vulnerability affects Ruby Rack releases 3.0.x, 3.1.0–3.1.22 and 3.2.0–3.2.7. Rails provides its own overrides that are not expected to be impacted.

Risk and Exploitability

The CVSS score of 4.8 indicates a moderate impact. Exploitation requires an attacker to send a crafted HTTP request with a malicious Host, X‑Forwarded‑Host, or Forwarded: host header. If an application uses the affected Rack methods without an independent host allowlist, the attacker can redirect users or inject markup via reflected URLs. The flaw is not listed in the CISA KEV catalog and no EPSS score is available at this time.

Generated by OpenCVE AI on November 9, 2026 at 23:18 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Rack to version 3.1.23 or later, or 3.2.8 or later, to apply the patch.
  • Enforce an explicit host allowlist in the application before using host_with_port, base_url, or url for redirects or URL construction.
  • Validate and sanitize any URLs derived from these methods before rendering or redirecting to prevent reflected markup.

Generated by OpenCVE AI on November 9, 2026 at 23:18 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 09 Nov 2026 23:45:00 +0000

Type Values Removed Values Added
First Time appeared Rack
Rack rack
Vendors & Products Rack
Rack rack

Mon, 09 Nov 2026 22:15:00 +0000

Type Values Removed Values Added
Description Rack is a modular Ruby web server interface. From 3.0 until 3.1.23 and 3.2.8, Rack::Request#host_with_port, #base_url, and #url can return an attacker-controlled invalid authority from Host, X-Forwarded-Host, or Forwarded: host= verbatim. Applications without an independent host allowlist that use these methods for absolute URLs, redirects, or origin-dependent checks can emit attacker-chosen delimiters, enabling redirect manipulation, string-based allowlist bypass, or unescaped markup reflection. Rails overrides these methods and is not expected to be affected. This issue is fixed in versions 3.1.23 and 3.2.8.
Title Rack: Rack::Request#host_with_port (and #base_url / #url) return the raw invalid Host header — incomplete fix of CVE-2026-34835
Weaknesses CWE-1286
References
Metrics cvssV3_1

{'score': 4.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-11-09T21:57:46.924Z

Reserved: 2026-11-09T17:45:35.935Z

Link: CVE-2026-125109

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-09T22:18:42.127

Modified: 2026-11-09T22:18:42.127

Link: CVE-2026-125109

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-09T23:30:18Z

Weaknesses
  • CWE-1286

    Improper Validation of Syntactic Correctness of Input