Live threats

All CVEs / Rack Project

CVE-2018-16471Rack Project Rack

Medium 6.1 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Rack.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
rack_projectrack≥ 1.6.0 < 1.6.11
rack_projectrack≥ 2.0.0 < 2.0.6
debiandebian_linux8.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.