# CVE-2026-125109: Rack: Rack::Request#host_with_port (and #base_url / #url) return the raw invalid Host header — incomplete fix of CVE-2026-34835

- Severity: Medium 4.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-11-09T21:57:46.924Z
- Modified: 2026-11-12T19:18:09.510Z
- Also known as: GHSA-2j8w-xcrc-x985
- Weaknesses: CWE-1286
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- rack rack: >= 3.0, < 3.1.23; >= 3.2, < 3.2.8
- rack (RubyGems): from 3.0.0 before 3.1.23; from 3.2.0 before 3.2.8

## Every score

- GitHub_M: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://github.com/rack/rack/security/advisories/GHSA-2j8w-xcrc-x985> (web)
- <https://github.com/rack/rack/commit/4380381a56dc52556a436d6d794c8e18dc8b0565> (web)
- <https://github.com/rack/rack/commit/49386f460286b7346c7003b69a839de782cc8a39> (web)
- <https://github.com/rack/rack/releases/tag/v3.1.23> (web)
- <https://github.com/rack/rack/releases/tag/v3.2.8> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-125109> (advisory)
- <https://github.com/rack/rack> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/GHSA-2j8w-xcrc-x985.yml> (web)

## Sources

- CVE List: [CVE-2026-125109](https://www.cve.org/CVERecord?id=CVE-2026-125109), CVE Terms of Use, modified 2026-11-10
- GitHub Advisory Database: [GHSA-2j8w-xcrc-x985](https://github.com/advisories/GHSA-2j8w-xcrc-x985), CC-BY-4.0, modified 2026-11-10
- NVD: [CVE-2026-125109](https://nvd.nist.gov/vuln/detail/CVE-2026-125109), Public domain, modified 2026-11-12

---

Page: https://cve.day/CVE-2026-125109 · Whole record: https://cve.day/CVE-2026-125109.json · Rebuilt by cve.day 2026-11-25T22:59:49.674Z
