CVE-2018-16471
Rack vulnerable to Cross-site Scripting
Reported by hackerone · Published November 13, 2018
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ruby-rack | Ubuntu:18.04:LTS | 1.6.4-4ubuntu0.1 |
| rack | rack_project | 2.0.6, 1.6.11 |
| ruby-rack | Ubuntu:16.04:LTS | 1.6.4-3ubuntu0.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Rack | Rack | 2.0.6, 1.6.11 |
| Rack | Rack | 2.0.6, 1.6.11 |
| RubyGems | rack | 1.6.0, 2.0.0 |
Timeline
- Nov 6, 2018 CVE Published
- Jun 13, 2019 CVE Updated
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 6, 2026 Distribution Patch
- Mar 6, 2026 Security Advisory (7 in total, the first dated here)
- Sep 23, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-16471
vulnetix vdb fixes CVE-2018-16471
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-16471/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- [debian-lts-announce] 20181121 [SECURITY] [DLA 1585-1] ruby-rack security update mailing-listx_refsource_MLIST
- openSUSE-SU-2019:1553 vendor-advisoryx_refsource_SUSE
- USN-4089-1 vendor-advisoryx_refsource_UBUNTU
- openSUSE-SU-2020:0214 vendor-advisoryx_refsource_SUSE
- https://nvd.nist.gov/vuln/detail/CVE-2018-16471 advisory