CVE-2021-22942: rubyonrails rails URL Redirection to Untrusted Site
Vulnerability summary
CVE-2021-22942 is a medium (CVSS 6.1) URL Redirection to Untrusted Site vulnerability in rubyonrails rails. EPSS estimates a 1.70% chance of exploitation in the next 30 days, higher than 77.1% of scored vulnerabilities.
Not severe (CVSS 6.1, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 2 · Related 1Timeline
- 18-10-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · RubygemsEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
1.70%
Chance of exploitation in the next 30 days
Percentile
77%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.70% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Debian1 product
- rails< 2:6.1.4.1+dfsg-3
RubyGems1 product
- actionpack≥ 6.0.0, < 6.0.4.1 | ≥ 6.1.0, < 6.1.4.1
Rubyonrails1 product
- rails≥ 6.0.0, < 6.0.4.1 | ≥ 6.1.0, < 6.1.4.1
Ubuntu1 product
- railsAll versions (No fix recorded)
4 vendors · 4 products
References
16 links- weblog.rubyonrails.org/2021/8/19/Rails-6-0-4-1-and-6-1-4-1-have-been-released/MitigationVendor Advisory
Show all 16 references
- github.com/rails/railsPACKAGE