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

    Threat Intelligence

    EPSS
    0.12% (48th 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 ID SNYK-RUBY-RAILS-1567785
  • published 20 Aug 2021
  • disclosed 20 Aug 2021
  • credit Unknown

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
Expand this section

Snyk

Recommended
7.6 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    High
Expand this section

NVD

6.1 medium
Expand this section

Red Hat

5.4 medium