BreachSpiderVerified, not vibes

CVE-2026-34835 in Rack

Medium 6.5

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

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.16.5
EPSS0.3%
EPSS percentile20th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no availability impact.

Affected products and versions

VendorProductAffected versions
Rack Rack ≥ 3.0.0, < 3.1.21 ≥ 3.2.0, < 3.2.6

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-34835
BreachSpider IDBS-2026-GLOBAL-187141-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Published2026-04-02
Last modified2026-07-24
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-1286: CWE-1286

Related attack patterns (CAPEC)

CAPEC-66 SQL Injection via CWE-1286

CAPEC-676 NoSQL Injection via CWE-1286

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

Rack, a modular Ruby web server interface, is vulnerable to improper host header parsing in versions 3.0.0.beta1 to before 3.1.21, and 3.2.0 to before 3.2.6. This can lead to potential host header injection attacks if applications perform naive prefix or suffix checks on the host value.

The vulnerability arises from Rack::Request parsing the Host header using an AUTHORITY regular expression that accepts characters not permitted in RFC-compliant hostnames, such as /, ?, #, and @. This allows attackers to inject malicious host values that could be used to bypass host validation checks in applications.

Questions

What is CVE-2026-34835?

Rack, a modular Ruby web server interface, is vulnerable to improper host header parsing in versions 3.0.0.beta1 to before 3.1.21, and 3.2.0 to before 3.2.6. This can lead to potential host header injection attacks if applications perform naive prefix or suffix checks on the host value.

What is the CVSS score for CVE-2026-34835?

CVE-2026-34835 has CVSS 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N. EPSS: 0.3%.

Is CVE-2026-34835 actively exploited?

No confirmed active exploitation of CVE-2026-34835 as of 2026-07-25.

How do I remediate CVE-2026-34835?

Priority: HIGH. PSIRT: [email protected]

What systems are affected by CVE-2026-34835?

CVE-2026-34835 affects Rack Rack.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Rack","product":"Rack","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-07-24.