{"id":"CVE-2026-125109","published":"2026-11-09T21:57:46Z","modified":"2026-11-10T16:18:06Z","title":"Rack: Rack::Request#host_with_port (and #base_url / #url) return the raw invalid Host header — incomplete fix of…","vendor":"rack","product":"rack","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00295,"percentile":0.22438,"provenance":"source"},"cwes":[{"id":"CWE-1286","name":"Improper Validation of Syntactic Correctness of Input"}],"references":[{"url":"https://github.com/rack/rack/security/advisories/GHSA-2j8w-xcrc-x985","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rack/rack/commit/4380381a56dc52556a436d6d794c8e18dc8b0565","tags":["x_refsource_MISC"]},{"url":"https://github.com/rack/rack/commit/49386f460286b7346c7003b69a839de782cc8a39","tags":["x_refsource_MISC"]},{"url":"https://github.com/rack/rack/releases/tag/v3.1.23","tags":["x_refsource_MISC"]},{"url":"https://github.com/rack/rack/releases/tag/v3.2.8","tags":["x_refsource_MISC"]}],"priority":{"score":7.8,"factors":[{"name":"EPSS percentile","points":4.49},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"rack","affectedVersions":[{"vendor":"rack","product":"rack","versions":[">= 3.0, < 3.1.23",">= 3.2, < 3.2.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-10T16:17:53.102307Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"rack","vulnerableRanges":[">=3.0.0, <3.1.23",">=3.2.0, <3.2.8"],"patched":["3.1.23","3.2.8"],"from":["GHSA-2j8w-xcrc-x985"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-120482","exploited":false,"provenance":"source"}}