Live threats

All CVEs / Rubyonrails

CVE-2021-22942Rubyonrails Rails

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
1.7%
probability of exploitation in 30 days · percentile 78
Auth required
No
Published
Oct 18, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-601
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

A possible open redirect vulnerability in the Host Authorization middleware in Action Pack >= 6.0.0 that could allow attackers to redirect users to a malicious website.

Original NVD text.

What to do

  1. Apply the vendor's security update for Rails.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems actionpack ≥ 6.0.0 < 6.0.4.1 6.0.4.1 gem "actionpack", ">= 6.0.4.1"
RubyGems actionpack ≥ 6.1.0 < 6.1.4.1 6.1.4.1 gem "actionpack", ">= 6.1.4.1"

Per OSV / GitHub Advisories (GHSA-2rqw-v265-jf8c). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
rubyonrailsrails≥ 6.0.0 < 6.0.4.1
rubyonrailsrails≥ 6.1.0 < 6.1.4.1

Official sources

References

Links published by the sources. Open them with care.