Cross-site Scripting (XSS) Affecting ruby2.5-rubygem-rack package, versions <2.0.8-3.3.1


Severity

Recommended
0.0
medium
0
10

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

EPSS
0.46% (76th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-SLES151-RUBY25RUBYGEMRACK-2717207
  • published14 Apr 2022
  • disclosed7 Feb 2020

Introduced: 7 Feb 2020

CVE-2018-16471  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade SLES:15.1 ruby2.5-rubygem-rack to version 2.0.8-3.3.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby2.5-rubygem-rack package and not the ruby2.5-rubygem-rack package as distributed by SLES. See How to fix? for SLES:15.1 relevant fixed versions and status.

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.