CVE-2018-16471Rack Project Rack
Medium 6.1 No auth needed
Follow: this CVE · Rack Project · Rack Project Rack We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.0
- 6.1
- EPSS
- 1.9% probability of exploitation in 30 days · percentile 80
- Auth required
- No
- Published
- Nov 13, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
There is a possible XSS vulnerability in Rack before 2.0.6 and 1.6.11. Carefully crafted requests can impact the data returned by the `scheme` method on `Rack::Request`. Applications that expect the scheme to be limited to 'http' or 'https' and do not escape the return value could be vulnerable to an XSS attack. Note that applications using the normal escaping mechanisms provided by Rails may not impacted, but applications that bypass the escaping mechanisms, or do not use them may be vulnerable.
What to do
- Apply the vendor's security update for Rack.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | rack |
≥ 2.0.0 < 2.0.6 |
2.0.6 |
gem "rack", ">= 2.0.6" |
| RubyGems | rack |
< 1.6.11 |
1.6.11 |
gem "rack", ">= 1.6.11" |
Per OSV / GitHub Advisories (GHSA-5r2p-j47h-mhpg). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rack_project | rack | ≥ 1.6.0 < 1.6.11 |
| rack_project | rack | ≥ 2.0.0 < 2.0.6 |
| debian | debian_linux | 8.0 |
Official advisories
- ruby4.0-rubygem-rack-3.1.18-1.3 on GA media · SUSE · openSUSE-SU-2026:10358-1 · Mar 13, 2026 Critical
- ruby4.0-rubygem-rack-2.2-2.2.22-1.1 on GA media · SUSE · openSUSE-SU-2026:10286-1 · Mar 4, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- lists.opensuse.org
- lists.opensuse.org
- groups.google.com
- lists.debian.org Mailing List Third Party Advisory
- usn.ubuntu.com