Open Redirect Affecting rails package, versions >=6.1.0, <6.1.4.1 >=6.0.0, <6.0.4.1
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
Introduced: 20 Aug 2021
CVE-2021-22942 Open this link in a new tabHow 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