cve.bz

CVE-2018-16471 Cross-site Scripting

6.1 mediumEPSS 1.9%Fix available

Medium (6.1). EPSS 1.9% estimated probability of exploitation activity in the next 30 days. Fixed in rack 1.6.11, 2.0.6.

On this page
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.

Severity

CVSS 3.0

6.1 medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
1.9% (unchanged from 1.9% a week ago; 1.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 80th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-16471 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-16471?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-16471?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-16471 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
rack_project:rackfrom 1.6.0 before 1.6.11
rack_project:rackfrom 2.0.0 before 2.0.6
debian:debian_linux8.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5r2p-j47h-mhpgRubyGemsrack>=2.0.0 <2.0.62.0.6
GHSA-5r2p-j47h-mhpgRubyGemsrack<1.6.111.6.11

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8ruby-rack1.5.2-3+deb8u2DLA-1585-1
Debian12, 13, 14ruby-rack1.6.4-6DEBIAN-CVE-2018-16471
Ubuntu16.04:LTSruby-rack1.6.4-3ubuntu0.1UBUNTU-CVE-2018-16471 USN-4089-1
Ubuntu18.04:LTSruby-rack1.6.4-4ubuntu0.1UBUNTU-CVE-2018-16471 USN-4089-1
SUSEEnterprise Storage 4, OpenStack Cloud 7, OpenStack Cloud Crowbar 8rubygem-rack1.6.11-3.3.1SUSE-SU-2019:1440-1
SUSELinux Enterprise High Availability Extension 15, Linux Enterprise High Availability Extension 15 SP1rubygem-rack2.0.8-3.3.1SUSE-SU-2020:0359-1
openSUSELeap 15.1rubygem-rack2.0.8-lp151.3.3.1openSUSE-SU-2020:0214-1
openSUSETumbleweedruby3.2-rubygem-rack3.0.7-1.2openSUSE-SU-2024:13167-1
openSUSETumbleweedruby3.2-rubygem-rack-2.22.2.7-1.1openSUSE-SU-2024:12974-1
openSUSETumbleweedrubygem-rack2.2.3.1-1.1openSUSE-SU-2024:12119-1
openSUSETumbleweedrubygem-rack3.0.9.1-1.1openSUSE-SU-2024:13726-1
openSUSETumbleweedrubygem-rack3.1.12-1.1openSUSE-SU-2025:14875-1
openSUSETumbleweedrubygem-rack3.1.18-1.3openSUSE-SU-2026:10358-1
openSUSETumbleweedrubygem-rack-2.22.2.11-1.1openSUSE-SU-2025:14811-1
openSUSETumbleweedrubygem-rack-2.22.2.22-1.1openSUSE-SU-2026:10286-1
openSUSETumbleweedrubygem-rack-2.22.2.4-1.1openSUSE-SU-2024:12397-1
openSUSETumbleweedrubygem-rack-2.22.2.8.1-1.1openSUSE-SU-2024:13727-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat OpenStack Platform and OpenShift Enterprise are not affected. Whilst the version of rack in use as a dependency in optional components is vulnerable, the vulnerable variable is not used in a way that could lead to XSS.

Subscription Asset Manager is now in a reduced support phase receiving only Critical impact security fixes. This issue has been rated as having a security impact Moderate, and is not currently planned to be addressed in future updates.

Red Hat CloudForms and Satellite 6 are not affected. Whilst the version of rack in use as a dependency in optional components is vulnerable, the vulnerable variable is not used in a way that could lead to XSS.

ProductPackageStateAdvisory
CloudForms Management Engine 5cfme-amazon-smartstateNot affected
CloudForms Management Engine 5cfme-gemsetNot affected
CloudForms Management Engine 5dpus-api-serviceNot affected
Red Hat OpenShift Container Platform 3.2rubygem-rackNot affected
Red Hat OpenShift Container Platform 3.3rubygem-rackNot affected
Red Hat OpenShift Container Platform 3.4rubygem-rackNot affected
Red Hat OpenShift Enterprise 3.1rubygem-rackNot affected
Red Hat OpenStack Platform 10 (Newton) Operational Toolsrubygem-rackNot affected
Red Hat OpenStack Platform 12 (Pike) Operational Toolsrubygem-rackNot affected
Red Hat OpenStack Platform 13 (Queens) Operational Toolsrubygem-rackNot affected
Red Hat OpenStack Platform 14 (Rocky) Operational Toolsrubygem-rackNot affected
Red Hat OpenStack Platform 8 (Liberty) Operational Toolsrubygem-rackNot affected
Red Hat OpenStack Platform 9 (Mitaka) Operational Toolsrubygem-rackNot affected
Red Hat Satellite 6rubygem-rackNot affected
Red Hat Satellite 6tfm-ror51-rubygem-rackNot affected
Red Hat Software Collectionsrh-ror42-rubygem-rackWill not fix
Red Hat Software Collectionsrh-ror50-rubygem-rackWill not fix
Red Hat Storage 3rubygem-rackWill not fix
Red Hat Subscription Asset Managerruby193-rubygem-rackWill not fix
Red Hat Update Infrastructure 3 for Cloud Providersrubygem-rackWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-16471.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON