CVE-2018-16471
publishedrubygem-rack: Cross-site scripting (XSS) via `scheme` method on `Rack::Request`
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Rack | — | Rack2.0.6, 1.6.11 | Affected | Not stated | hackerone |
| Debian | jessie | ruby-rack | Advisory build | 1.5.2-3+deb8u2 | DLA-1585-1 |
| SUSE / openSUSE | SLE-15 | ruby2.5-rubygem-rackaarch64 | Advisory build | 2.0.8-3.3.1 | SUSE-SU-2020:0359-1 |
| Ubuntu | bionic | ruby-rack | Advisory build | 1.6.4-4ubuntu0.1 | USN-4089-1 |
| SUSE / openSUSE | SLE-15 | ruby2.5-rubygem-rackppc64le | Advisory build | 2.0.8-3.3.1 | SUSE-SU-2020:0359-1 |
| SUSE / openSUSE | SLE-15 | ruby2.5-rubygem-racks390x | Advisory build | 2.0.8-3.3.1 | SUSE-SU-2020:0359-1 |
| SUSE / openSUSE | SLE-15 | ruby2.5-rubygem-rackx86_64 | Advisory build | 2.0.8-3.3.1 | SUSE-SU-2020:0359-1 |
| SUSE / openSUSE | SLE-15-SP1 | ruby2.5-rubygem-rackaarch64 | Advisory build | 2.0.8-3.3.1 | SUSE-SU-2020:0359-1 |
Show 63 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP1 | ruby2.5-rubygem-rackppc64le | Advisory build | 2.0.8-3.3.1 | SUSE-SU-2020:0359-1 |
| SUSE / openSUSE | SLE-15-SP1 | ruby2.5-rubygem-racks390x | Advisory build | 2.0.8-3.3.1 | SUSE-SU-2020:0359-1 |
| SUSE / openSUSE | SLE-15-SP1 | ruby2.5-rubygem-rackx86_64 | Advisory build | 2.0.8-3.3.1 | SUSE-SU-2020:0359-1 |
| SUSE / openSUSE | openSUSE-Leap-15.1 | ruby2.5-rubygem-rackx86_64 | Advisory build | 2.0.8-lp151.3.3.1 | OPENSUSE-SU-2020:0214-1 |
| SUSE / openSUSE | openSUSE-Leap-15.1 | ruby2.5-rubygem-rack-docx86_64 | Advisory build | 2.0.8-lp151.3.3.1 | OPENSUSE-SU-2020:0214-1 |
| SUSE / openSUSE | openSUSE-Leap-15.1 | ruby2.5-rubygem-rack-testsuitex86_64 | Advisory build | 2.0.8-lp151.3.3.1 | OPENSUSE-SU-2020:0214-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-rackaarch64 | Advisory build | 2.2.3-1.7 | OPENSUSE-SU-2024:11344-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-rackppc64le | Advisory build | 2.2.3-1.7 | OPENSUSE-SU-2024:11344-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-racks390x | Advisory build | 2.2.3-1.7 | OPENSUSE-SU-2024:11344-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-rackx86_64 | Advisory build | 2.2.3-1.7 | OPENSUSE-SU-2024:11344-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-rack-2.0aarch64 | Advisory build | 2.0.9-1.10 | OPENSUSE-SU-2024:11346-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-rack-2.0ppc64le | Advisory build | 2.0.9-1.10 | OPENSUSE-SU-2024:11346-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-rack-2.0s390x | Advisory build | 2.0.9-1.10 | OPENSUSE-SU-2024:11346-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-rack-2.0x86_64 | Advisory build | 2.0.9-1.10 | OPENSUSE-SU-2024:11346-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-rackaarch64 | Advisory build | 2.2.3-1.7 | OPENSUSE-SU-2024:11344-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-rackppc64le | Advisory build | 2.2.3-1.7 | OPENSUSE-SU-2024:11344-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-racks390x | Advisory build | 2.2.3-1.7 | OPENSUSE-SU-2024:11344-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-rackx86_64 | Advisory build | 2.2.3-1.7 | OPENSUSE-SU-2024:11344-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-rack-2.0aarch64 | Advisory build | 2.0.9-1.10 | OPENSUSE-SU-2024:11346-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-rack-2.0ppc64le | Advisory build | 2.0.9-1.10 | OPENSUSE-SU-2024:11346-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-rack-2.0s390x | Advisory build | 2.0.9-1.10 | OPENSUSE-SU-2024:11346-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-rack-2.0x86_64 | Advisory build | 2.0.9-1.10 | OPENSUSE-SU-2024:11346-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-rackaarch64 | Advisory build | 2.2.3.1-1.1 | OPENSUSE-SU-2024:12119-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-rackppc64le | Advisory build | 2.2.3.1-1.1 | OPENSUSE-SU-2024:12119-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-racks390x | Advisory build | 2.2.3.1-1.1 | OPENSUSE-SU-2024:12119-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-rackx86_64 | Advisory build | 2.2.3.1-1.1 | OPENSUSE-SU-2024:12119-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-rack-2.2aarch64 | Advisory build | 2.2.4-1.1 | OPENSUSE-SU-2024:12397-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-rack-2.2ppc64le | Advisory build | 2.2.4-1.1 | OPENSUSE-SU-2024:12397-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-rack-2.2s390x | Advisory build | 2.2.4-1.1 | OPENSUSE-SU-2024:12397-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-rack-2.2x86_64 | Advisory build | 2.2.4-1.1 | OPENSUSE-SU-2024:12397-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-rackaarch64 | Advisory build | 3.0.7-1.2 | OPENSUSE-SU-2024:13167-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-rackppc64le | Advisory build | 3.0.7-1.2 | OPENSUSE-SU-2024:13167-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-racks390x | Advisory build | 3.0.7-1.2 | OPENSUSE-SU-2024:13167-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-rackx86_64 | Advisory build | 3.0.7-1.2 | OPENSUSE-SU-2024:13167-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-rack-2.2aarch64 | Advisory build | 2.2.7-1.1 | OPENSUSE-SU-2024:12974-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-rack-2.2ppc64le | Advisory build | 2.2.7-1.1 | OPENSUSE-SU-2024:12974-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-rack-2.2s390x | Advisory build | 2.2.7-1.1 | OPENSUSE-SU-2024:12974-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-rack-2.2x86_64 | Advisory build | 2.2.7-1.1 | OPENSUSE-SU-2024:12974-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-rackaarch64 | Advisory build | 3.0.9.1-1.1 | OPENSUSE-SU-2024:13726-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-rackppc64le | Advisory build | 3.0.9.1-1.1 | OPENSUSE-SU-2024:13726-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-racks390x | Advisory build | 3.0.9.1-1.1 | OPENSUSE-SU-2024:13726-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-rackx86_64 | Advisory build | 3.0.9.1-1.1 | OPENSUSE-SU-2024:13726-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-rack-2.2aarch64 | Advisory build | 2.2.8.1-1.1 | OPENSUSE-SU-2024:13727-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-rack-2.2ppc64le | Advisory build | 2.2.8.1-1.1 | OPENSUSE-SU-2024:13727-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-rack-2.2s390x | Advisory build | 2.2.8.1-1.1 | OPENSUSE-SU-2024:13727-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-rack-2.2x86_64 | Advisory build | 2.2.8.1-1.1 | OPENSUSE-SU-2024:13727-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-rackaarch64 | Advisory build | 3.1.12-1.1 | OPENSUSE-SU-2025:14875-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-rackppc64le | Advisory build | 3.1.12-1.1 | OPENSUSE-SU-2025:14875-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-racks390x | Advisory build | 3.1.12-1.1 | OPENSUSE-SU-2025:14875-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-rackx86_64 | Advisory build | 3.1.12-1.1 | OPENSUSE-SU-2025:14875-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-rack-2.2aarch64 | Advisory build | 2.2.11-1.1 | OPENSUSE-SU-2025:14811-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-rack-2.2ppc64le | Advisory build | 2.2.11-1.1 | OPENSUSE-SU-2025:14811-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-rack-2.2s390x | Advisory build | 2.2.11-1.1 | OPENSUSE-SU-2025:14811-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-rack-2.2x86_64 | Advisory build | 2.2.11-1.1 | OPENSUSE-SU-2025:14811-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-rackaarch64 | Advisory build | 3.1.18-1.3 | OPENSUSE-SU-2026:10358-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-rackppc64le | Advisory build | 3.1.18-1.3 | OPENSUSE-SU-2026:10358-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-racks390x | Advisory build | 3.1.18-1.3 | OPENSUSE-SU-2026:10358-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-rackx86_64 | Advisory build | 3.1.18-1.3 | OPENSUSE-SU-2026:10358-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-rack-2.2aarch64 | Advisory build | 2.2.22-1.1 | OPENSUSE-SU-2026:10286-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-rack-2.2ppc64le | Advisory build | 2.2.22-1.1 | OPENSUSE-SU-2026:10286-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-rack-2.2s390x | Advisory build | 2.2.22-1.1 | OPENSUSE-SU-2026:10286-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-rack-2.2x86_64 | Advisory build | 2.2.22-1.1 | OPENSUSE-SU-2026:10286-1 |
| Ubuntu | xenial | ruby-rack | Advisory build | 1.6.4-3ubuntu0.1 | USN-4089-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Rack | Rack | 2.0.6, 1.6.11 (affected) | hackerone · cna |
Weaknesses
1- CWE-79 Cross-site Scripting (XSS) - Stored (CWE-79)
References
5- openSUSE-SU-2019:1553 http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00032.html
- openSUSE-SU-2020:0214 http://lists.opensuse.org/opensuse-security-announce/2020-02/msg00016.html
- https://groups.google.com/forum/#%21topic/rubyonrails-security/GKsAFT924Ag
- [debian-lts-announce] 20181121 [SECURITY] [DLA 1585-1] ruby-rack security update https://lists.debian.org/debian-lts-announce/2018/11/msg00022.html
- USN-4089-1 https://usn.ubuntu.com/4089-1/
Provider assertions
2hackerone · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 35a0c0ce0efcf9e852cada4e1662b35ad3f0325a5e54760d3e4c2f8778ae8461
- Ingested
- 23 Sep 2026, 07:43:53 UTC
- Source record
- Official CVE record