Vulnerability advisory

CVE-2024-26143

Rails Possible XSS Vulnerability in Action Controller

Published Updated OSV record ↗

Also known as BIT-rails-2024-26143GHSA-9822-6m93-xqf4

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 ↗
984c3ef2775781d47efa9f541ce570daa2434a80 to before 506462ab13755d9f024e1ddbfc8c58d73e7a1bce506462ab13755d9f024e1ddbfc8c58d73e7a1bce
d39db5d1891f7509cde2efc425c9d69bbb77e670 to before d73ed958dc91d6b8cbb0bef7b4cdcfc013bd876fd73ed958dc91d6b8cbb0bef7b4cdcfc013bd876f
Not specified4c83b331092a79d58e4adffe4be5f250fa5782cc
Not specified5187a9ef51980ad1b8e81945ebe0462d28f84f9e
Also listed as affected (13)
  • v7.0.8
  • v7.1.3
  • v7.1.2
  • v7.1.1
  • v7.1.0
  • v7.0.7
  • v7.0.6
  • v7.0.5
  • v7.0.4
  • v7.0.3
  • v7.0.2
  • v7.0.1
  • v7.0.0

Description

Rails is a web-application framework. There is a possible XSS vulnerability when using the translation helpers in Action Controller. Applications using translation methods like translate, or t on a controller, with a key ending in "_html", a :default key which contains untrusted user input, and the resulting string is used in a view, may be susceptible to an XSS vulnerability. The vulnerability is fixed in 7.1.3.1 and 7.0.8.1.

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