CVE-2026-34835
Rack: `Rack::Request` accepts invalid Host characters, enabling host allowlist bypass.
Reported by github_m · Published April 2, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kube-fluentd-operator | Chainguard | 1.18.2-r67 |
| logstash-9.0 | Chainguard | 9.0.8-r20 |
| logstash-9.3 | Wolfi | 9.3.3-r2 |
| logstash-9.1 | Wolfi | 9.1.10-r6 |
| ruby3.2-rails-8.0 | Chainguard | 8.0.5-r0 |
| rack | rack | 3.2.6, 3.1.21 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| rack | rack | >= 3.0.0.beta1, < 3.1.21, >= 3.2.0, < 3.2.6 |
| chainguard | kube-fluentd-operator | 0 |
| chainguard | logstash-9.0 | 0 |
| wolfi | logstash-9.3 | 0 |
| wolfi | logstash-9.1 | 0 |
| chainguard | ruby3.2-rails-8.0 | 0 |
| rack | rack | |
| chainguard | logstash-9.3 | 0 |
| chainguard | pact-broker-docker-fips | 0 |
| wolfi | kube-fluentd-operator | 0 |
| chainguard | ruby3.4-rails-7.2 | 0 |
| RubyGems | rack | 3.2.0, 3.0.0-beta.1 |
| wolfi | ruby3.4-rails-8.0 | 0, 0 |
| chainguard | logstash-9.2 | 0 |
| chainguard | pact-broker-docker | 0 |
| chainguard | logstash-8.19 | 0 |
| chainguard | ruby3.2-rails-7.2 | 0, 0 |
| chainguard | ruby3.4-rails-8.0 | 0, 0 |
| wolfi | ruby3.2-rails-8.0 | 0 |
| chainguard | logstash-9.1 | 0 |
…and 2 more
Timeline
- Apr 2, 2026 CVE Published
- Apr 3, 2026 Security Advisory
- May 13, 2026 CVE Updated
- May 18, 2026 EPSS Score (30 in total, the first dated here)
- Jun 12, 2026 Coalition ESS Score
- Nov 9, 2026 PoC Published
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-34835
vulnetix vdb fixes CVE-2026-34835
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-34835/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/rack/rack/security/advisories/GHSA-g2pf-xv49-m2h5 x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2026-34835 advisory
- https://github.com/advisories/GHSA-g2pf-xv49-m2h5 advisory
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2026-34835.yml advisory
- https://github.com/rack/rack url