MEDIUM · CVSS 3.1 5.3 EPSS 0.4% · 29th percentile CWE-180

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

How to check your project

Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
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 vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityNone
IntegrityLow
AvailabilityNone

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
## Summary `Rack::Static` normalizes the request path with `Utils.clean_path_info` when deciding which file to serve, but matches `header_rules` against a path that is only URL-decoded. A request containing dot segments, raw or percent-encoded, is served the normalized target file while the header rules for that file's location are not applied. This allows an attacker to receive a protected static file without the security headers configured for it. ## Details `Rack::Static#call` computes the served path as `Utils.clean_path_info(Utils.unescape_path(path))`. `Rack::Static#applicable_rules` applies only `Utils.unescape_path` before testing string and regular expression rules. A request for `/assets/../uploads/file.html` or `/assets/..%2fuploads/file.html` is served as `uploads/file.html`, but the decoded path `/assets/../uploads/file.html` does not start with `uploads`, so a rule scoped to that directory never matches. The fix for CVE-2026-34786 (GHSA-q4qf-9j86-f5mh) added URL decoding to rule matching but did not add dot segment normalization, so versions that include that fix remain affected. ## Impact Applications that use `Rack::Static` `header_rules` to attach security-relevant headers to particular paths or file types are affected. An unauthenticated attacker who knows the path of a protected file can request it through a dot segment path and receive it without those headers, for example without `Content-Disposition: attachment` or a restrictive `Content-Security-Policy` that prevents uploaded HTML from rendering inline. The file itself is served unchanged. Applications that do not use path-specific `header_rules` are not affected. ## Mitigation * Update to a patched version of Rack in which `header_rules` are matched against the same normalized path used to serve the file. * Reject requests containing dot segments at a reverse proxy or application boundary. * Do not rely solely on `Rack::Static` `header_rules` to prevent inline rendering of untrusted uploads; serve them from a separate origin. ## Credit * Reporter and Remediation developer

References

Source records: GHSA-wvg4-6p58-3gh3 (OSV.dev) · EPSS by FIRST, 2026-11-26.