CVE-2026-125110: Rack: Rack::Static header_rules bypass via dot-segment normalization mismatch
Published 2026-11-10 · Updated 2026-11-10 · Also known as GHSA-wvg4-6p58-3gh3
Summary
Rack::Static contains a header bypass vulnerability where dot-segment normalization mismatches prevent security headers from being applied to requested files. Engineering teams using header_rules in Rack::Static should upgrade to the specified patched versions to ensure consistent policy enforcement.
Who is affected
Applications using Rack::Static to apply path-based security headers are vulnerable when attackers use dot-segment paths to request files. Because the header rules are not evaluated against the normalized path, requested files may be served without security protections like Content-Disposition or restrictive CSPs. This primarily affects deployments where sensitive static assets rely on header_rules for enforcement.
Exploitability
The vulnerability carries a CVSS base score of 5.3, indicating a medium-severity issue accessible via network vectors without requiring user interaction or elevated privileges. With an EPSS score of 0.003, the probability of active exploitation is currently low, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade RubyGems rack to version 2.2.25, 3.1.23, or 3.2.8 or later.
- Implement request filtering at the reverse proxy or application boundary to reject requests containing dot segments.
- Serve untrusted uploads from a separate, dedicated origin rather than relying solely on header_rules.
How to check your project
- Check Gemfile.lock or equivalent dependency manifest for the 'rack' gem version.
- Audit application configurations for the use of Rack::Static with defined 'header_rules'.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| RubyGems | rack |
>= 0, < 2.2.25 | 2.2.25 | bundle update rack |
| RubyGems | rack |
>= 3.0.0, < 3.1.23 | 3.1.23 | bundle update rack |
| RubyGems | rack |
>= 3.2.0, < 3.2.8 | 3.2.8 | bundle update rack |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | Low |
| Availability | None |
FAQ
Does this vulnerability allow for arbitrary file read?
No, the vulnerability allows an attacker to bypass security headers applied to a file, but the file is still served via the expected Rack::Static path normalization logic.
Is there active exploitation of this vulnerability?
No, there is no evidence of active exploitation based on the CISA Known Exploited Vulnerabilities catalog.
Are all Rack users affected?
No, only applications that specifically use Rack::Static with 'header_rules' configurations are susceptible to this header bypass.
Original advisory description
References
- WEB https://github.com/rack/rack/security/advisories/GHSA-wvg4-6p58-3gh3
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-125110
- WEB https://github.com/rack/rack/commit/18a07fe553afb4d8a678d6a948cd6ba1e11e28be
- WEB https://github.com/rack/rack/commit/9d7f19484ffd5ed5e032678c26ee6eff96d3a0a3
- WEB https://github.com/rack/rack/commit/e88097ccb88be44d06d47b42daffe04929516ee4
- PACKAGE https://github.com/rack/rack
- WEB https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/GHSA-wvg4-6p58-3gh3.yml
Source records: GHSA-wvg4-6p58-3gh3 (OSV.dev) · EPSS by FIRST, 2026-11-26.