Open Redirect Affecting rails package, versions >=6.1.0, <6.1.4.1>=6.0.0, <6.0.4.1


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.11% (45th 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 Open Redirect vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-RAILS-1567785
  • published20 Aug 2021
  • disclosed20 Aug 2021
  • creditUnknown

Introduced: 20 Aug 2021

CVE-2021-22942  (opens in a new tab)
CWE-601  (opens in a new tab)

How to fix?

Upgrade rails to version 6.1.4.1, 6.0.4.1 or higher.

Overview

rails is an opensource MVC web framework.

Affected versions of this package are vulnerable to Open Redirect. Specially crafted “X-Forwarded-Host” headers in combination with certain “allowed host” formats can cause the Host Authorization middleware in Action Pack to redirect users to a malicious website.

NOTE: This is similar to CVE-2021-22881, and only affects applications that allow hosts with leading dots. Example of a config file that allows this:

config.hosts <<  '.EXAMPLE.com'

CVSS Scores

version 3.1