Vulnerability in Rack
CVE-2026-34835
Rack is a modular Ruby web server interface. From versions 3.0.0.beta1 to before 3.1.21, and 3.2.0 to before 3.2.6, Rack::Request parses the Host header using an AUTHORITY regular expression that accepts characters not permitted in RFC-compliant hostnames, including /, ?, #, and @. Because req.host returns the full parsed value, applications that validate hosts using naive prefix or suffix checks can be bypassed. This can lead to host header poisoning in applications that use req.host, req.url, or req.base_url for link generation, redirects, or origin validation. This issue has been patched in versions 3.1.21 and 3.2.6.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.8 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.002, 11.2th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Rack — versions >= 3.0.0.beta1, < 3.1.21, >= 3.2.0, < 3.2.6
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- Cyber-note/CVE-2026-34835-Black-box-Analysis (6 stars, last pushed 2026-07-03): A black-box (DAST) security analysis of CVE-2026-34835 focusing on external validation methodology, observable behavior, security impact, and defensive recommendations.
References
- https://github.com/rack/rack/security/advisories/GHSA-g2pf-xv49-m2h5 (Exploit, Mitigation, Vendor Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.