ADVISORIES

Vulnerability

CVE-2021-22881

The Host Authorization middleware in Action Pack before 6.1.2.1, 6.0.3.5 suffers from an open redirect vulnerability. 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. Impacted applications will have allowed hosts with a leading dot. When an allowed host contains a leading dot, a specially crafted `Host` header can be used to redirect to a malicious website.

4 advisories report this vulnerability, across 4 ecosystems.

Advisories

  • DEBIAN-CVE-2021-22881

    The Host Authorization middleware in Action Pack before 6.1.2.1, 6.0.3.5 suffers from an open redirect vulnerability. Specially crafted `Host` headers in combination with certain "allowed host" formats can cause the…

    CVE-2021-22881 Debian Updated 23 October 2026
  • GHSA-8877-prq4-9xfw

    Actionpack Open Redirect Vulnerability

    Moderate CVE-2021-22881 RubyGems Updated 20 February 2024
  • UBUNTU-CVE-2021-22881

    The Host Authorization middleware in Action Pack before 6.1.2.1, 6.0.3.5 suffers from an open redirect vulnerability. Specially crafted `Host` headers in combination with certain "allowed host" formats can cause the…

    CVE-2021-22881 Ubuntu Updated 24 November 2026
  • openSUSE-SU-2024:11821-1

    ruby3.1-rubygem-actionpack-6.0-6.0.4.4-1.1 on GA media

    Known exploited CVE-2019-16782CVE-2019-5418CVE-2020-8164CVE-2020-8166 openSUSE Updated 4 February 2026

References