Vulnerability advisory

CVE-2026-33167

Rails has a possible XSS vulnerability in its Action Pack debug exceptions

Published Updated OSV record ↗

Also known as GHSA-pgm4-439c-5jp6

Severity
  • CVSS 4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/rails/rails ↗
1cdd190a25e483b65f1f25bbd0f13a25d696b461 to before 1db4b89687cc18311fc3f92623136705df24e6711db4b89687cc18311fc3f92623136705df24e671
Not specified6752711c8c31d79ba50d13af6a6698a3b85415e0
Also listed as affected (3)
  • v8.1.2
  • v8.1.1
  • v8.1.0

Description

Action Pack is a Rubygem for building web applications on the Rails framework. In versions on the 8.1 branch prior to 8.1.2.1, the debug exceptions page does not properly escape exception messages. A carefully crafted exception message could inject arbitrary HTML and JavaScript into the page, leading to XSS. This affects applications with detailed exception pages enabled (config.consider_all_requests_local = true), which is the default in development. Version 8.1.2.1 contains a patch.

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