PT-2018-3008 · Ruby+2 · Rack+2

Published

2018-11-13

·

Updated

2026-03-13

·

CVE-2018-16471

CVSS v3.1

6.1

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Rack versions prior to 2.0.6 Rack versions prior to 1.6.11
Description The issue is related to a possible XSS vulnerability. Carefully crafted requests can impact the data returned by the scheme method on Rack::Request. This could lead to an XSS attack if the scheme return value is not properly escaped, particularly in applications that expect the scheme to be limited to 'http' or 'https'. Applications using normal escaping mechanisms provided by Rails may not be impacted, but those bypassing or not using these mechanisms could be vulnerable.
Recommendations For Rack versions prior to 2.0.6, update to version 2.0.6 or later to resolve the issue. For Rack versions prior to 1.6.11, update to version 1.6.11 or later to resolve the issue. As a temporary workaround, consider properly escaping the return value of the scheme method on Rack::Request to minimize the risk of exploitation.

Exploit

Fix

XSS

Weakness Enumeration

Related Identifiers

BDU:2019-03337
CVE-2018-16471
DLA-1585-1
GHSA-5R2P-J47H-MHPG
MGASA-2018-0449
OPENSUSE-SU-2019_1553-1
OPENSUSE-SU-2020:0214-1
OPENSUSE-SU-2020_0214-1
OPENSUSE-SU-2024:11344-1
OPENSUSE-SU-2024:11346-1
OPENSUSE-SU-2024:12119-1
OPENSUSE-SU-2024:12397-1
OPENSUSE-SU-2024:12974-1
OPENSUSE-SU-2024:13167-1
OPENSUSE-SU-2024:13726-1
OPENSUSE-SU-2024:13727-1
OPENSUSE-SU-2025:14811-1
OPENSUSE-SU-2025:14875-1
OPENSUSE-SU-2026:10286-1
OPENSUSE-SU-2026:10358-1
SUSE-SU-2019:1440-1
SUSE-SU-2020:0359-1
SUSE-SU-2020_0359-1
USN-4089-1

Affected Products

Rack
Suse
Ubuntu