Skip to content
OpenAdvisories
Medium · 6.1 CVE-2018-16471 EUVD-2018-0731GHSA-5r2p-j47h-mhpg

Rack vulnerable to Cross-site Scripting

Published Nov 13, 2018 · Updated Aug 5, 2024 · Assigned by hackerone

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.

Affected products

VendorProductAffectedFixed
Rack Rack 2.0.6, 1.6.11 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ruby-rack 1.6.4-6 —
Debian 13 ruby-rack 1.6.4-6 —
Debian 12 ruby-rack 1.6.4-6 —
Debian 8 ruby-rack 1.5.2-3+deb8u2 DLA-1585-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS ruby-rack 1.6.4-4ubuntu0.1 USN-4089-1
Ubuntu 16.04 LTS ruby-rack 1.6.4-3ubuntu0.1 USN-4089-1
ReleasePackageFixed inAdvisory
SLES 15 SP1 rubygem-rack 2.0.8-3.3.1 SUSE-SU-2020:0359-1
SLES 15 rubygem-rack 2.0.8-3.3.1 SUSE-SU-2020:0359-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SUSE OpenStack Cloud Crowbar 8 rubygem-rack 1.6.11-3.3.1 SUSE-SU-2019:1440-1
SUSE OpenStack Cloud 7 rubygem-rack 1.6.11-3.3.1 SUSE-SU-2019:1440-1
SUSE Enterprise Storage 4 rubygem-rack 1.6.11-3.3.1 SUSE-SU-2019:1440-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ruby3.2-rubygem-rack 3.0.7-1.2 openSUSE-SU-2024:13167-1
openSUSE Tumbleweed ruby3.2-rubygem-rack-2.2 2.2.7-1.1 openSUSE-SU-2024:12974-1
openSUSE Tumbleweed rubygem-rack 2.2.3.1-1.1 openSUSE-SU-2026:10358-1, openSUSE-SU-2025:14875-1, openSUSE-SU-2024:13726-1
openSUSE Tumbleweed rubygem-rack-2.2 2.2.4-1.1 openSUSE-SU-2026:10286-1, openSUSE-SU-2025:14811-1, openSUSE-SU-2024:13727-1
openSUSE Leap 15.1 rubygem-rack 2.0.8-lp151.3.3.1 openSUSE-SU-2020:0214-1

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems rack >= 2.0.0, < 2.0.6 2.0.6 GHSA-5r2p-j47h-mhpg
RubyGems rack < 1.6.11 1.6.11 GHSA-5r2p-j47h-mhpg

Advisories 15

References