Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. actionpack
  4. ›
  5. CVE-2021-22942

CVE-2021-22942: URL Redirection to Untrusted Site ('Open Redirect')

August 26, 2021 (updated December 15, 2021)

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.

References

  • www.openwall.com/lists/oss-security/2021/12/14/5
  • access.redhat.com/security/cve/cve-2021-22942
  • github.com/advisories/GHSA-2rqw-v265-jf8c
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2021-22942.yml
  • groups.google.com/g/rubyonrails-security/c/wB5tRn7h36c
  • nvd.nist.gov/vuln/detail/CVE-2021-22942
  • rubygems.org/gems/actionpack
  • weblog.rubyonrails.org/2021/8/19/Rails-6-0-4-1-and-6-1-4-1-have-been-released/

Code Behaviors & Features

Detect and mitigate CVE-2021-22942 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 6.0.0 up to 6.0.4, all versions starting from 6.1.0 up to 6.1.4

Fixed versions

  • 6.0.4.1
  • 6.1.4.1

Solution

Upgrade to versions 6.0.4.1, 6.1.4.1 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

gem/actionpack/CVE-2021-22942.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:52 +0000.