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

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

June 11, 2021 (updated October 21, 2021)

This is similar to CVE-2021-22881. Specially crafted 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.

References

  • groups.google.com/g/rubyonrails-security/c/8TxqXEtgSF0
  • nvd.nist.gov/vuln/detail/CVE-2021-22903

Code Behaviors & Features

Detect and mitigate CVE-2021-22903 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.1.0 up to 6.1.3.2

Fixed versions

  • 6.1.4

Solution

Upgrade to version 6.1.4 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/rails/CVE-2021-22903.yml

Spotted a mistake? Edit the file on GitLab.

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

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