CVE-2018-16471
MEDIUM 6.1CVSS 3.0Rack vulnerable to Cross-site Scripting
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.
- Published
- 13 Nov 2018
- Last modified
- 17 Jun 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-5r2p-j47h-mhpg
- Sources
- NVDJSONOSV GHSA-5r2p-j47h-mhpgJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rack_project | rackcpe:2.3:a:rack_project:rack:*:*:*:*:*:*:*:* |
>= 1.6.0, < 1.6.11 | 1.6.11 |
| NVD | rack_project | rackcpe:2.3:a:rack_project:rack:*:*:*:*:*:*:*:* |
>= 2.0.0, < 2.0.6 | 2.0.6 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| OSV | RubyGems | rack | >= 2.0.0, < 2.0.6 | 2.0.6 |
| OSV | RubyGems | rack | < 1.6.11 | 1.6.11 |
References
- http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00032.html · WEB
- http://lists.opensuse.org/opensuse-security-announce/2020-02/msg00016.html · WEB
- https://groups.google.com/forum/#%21topic/rubyonrails-security/GKsAFT924Ag
- https://lists.debian.org/debian-lts-announce/2018/11/msg00022.html · Mailing List, Third Party Advisory, WEB
- https://usn.ubuntu.com/4089-1/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-16471 · ADVISORY
- https://github.com/rack/rack · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2018-16471.yml · WEB
- https://groups.google.com/forum/#!topic/ruby-security-ann/NAalCee8n6o · WEB
- https://groups.google.com/forum/#!topic/rubyonrails-security/GKsAFT924Ag · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 13 Nov 2018)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Nov 2018)