Vulnerability advisory

CVE-2021-22881

Published Updated OSV record ↗

Also known as GHSA-8877-prq4-9xfw

Severity
  • CVSS 3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/rails/rails ↗
66cabeda2c46c582d19738e1318be8d59584cc5b to before c5929d5eb55b749bc124b3ccc2d79323d015701fc5929d5eb55b749bc124b3ccc2d79323d015701f
914caca2d31bd753f47f9168f2a375921d9e91cc to before 130c128eae233bf71231c73b9c3c3b3f3ede918b130c128eae233bf71231c73b9c3c3b3f3ede918b
Also listed as affected (10)
  • v6.1.2
  • v6.0.3.4
  • v6.1.1
  • v6.1.0
  • v6.0.3.3
  • v6.0.3.2
  • v6.0.3.1
  • v6.0.3
  • v6.0.3.rc1
  • v6.0.0

Description

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.

References

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools