UBUNTU-CVE-2026-125109: Medium severity ubuntu/ruby-rack vulnerability

Published Nov 12, 2026
·
Updated

Rack is a modular Ruby web server interface. From 3.0 until 3.1.23 and 3.2.8, Rack::Request#hostwithport, #baseurl, 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.

Affected Software

8 affected components
ubuntu/ruby-rack*
ubuntu/ruby-rack*
ubuntu/ruby-rack*
ubuntu/ruby-rack*
ubuntu/ruby-rack*
ubuntu/ruby-rack*
ubuntu/ruby-rack*
ubuntu/ruby-rack*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Rack to a version that resolves this vulnerability.

    Fixed in 3.1.23
  2. Upgrade

    Upgrade Rack to a version that resolves this vulnerability.

    Fixed in 3.2.8

Event History

Nov 12, 2026
CVE Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which applications are most likely to be exposed?

Applications using Rack’s Request#host_with_port, #base_url, or #url to construct absolute URLs, redirects, or origin-dependent checks are exposed if they do not independently enforce a host allowlist. Rails overrides these methods and is not expected to be affected.

2

What request control does an attacker need?

An attacker needs to be able to supply a crafted Host, X-Forwarded-Host, or Forwarded host= value. The vulnerable methods can return an invalid authority from those headers verbatim.

3

Are default deployments necessarily affected?

No. Exploitation depends on the application using the affected Rack request methods in a security-relevant context and lacking an independent host allowlist.

4

What can be done before updating Rack?

Enforce an independent allowlist for accepted host values and avoid using unvalidated Host, X-Forwarded-Host, or Forwarded host= values when generating absolute URLs, redirects, or performing origin-dependent checks.

5

Which Rack versions contain the fix?

The issue is fixed in Rack 3.1.23 and 3.2.8. The affected range is Rack 3.0 through versions before 3.1.23 and 3.2.8.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203