CVE-2024-26143Rubyonrails Rails
Medium 6.1 No auth needed
Follow: this CVE · Rubyonrails · Rubyonrails Rails We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 1.2% probability of exploitation in 30 days · percentile 68
- Auth required
- No
- Published
- Feb 27, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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
- Apply the vendor's security update for Rails.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | actionpack |
≥ 7.0.0 < 7.0.8.1 |
7.0.8.1 |
gem "actionpack", ">= 7.0.8.1" |
| RubyGems | actionpack |
≥ 7.1.0 < 7.1.3.1 |
7.1.3.1 |
gem "actionpack", ">= 7.1.3.1" |
| RubyGems | rails |
≥ 7.0.0 < 7.0.8.1 |
7.0.8.1 |
gem "rails", ">= 7.0.8.1" |
| RubyGems | rails |
≥ 7.1.0 < 7.1.3.1 |
7.1.3.1 |
gem "rails", ">= 7.1.3.1" |
Per OSV / GitHub Advisories (GHSA-9822-6m93-xqf4). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rubyonrails | rails | ≥ 7.0.0 < 7.0.8.1 |
| rubyonrails | rails | ≥ 7.1.0 < 7.1.3.1 |
Official sources
References
Links published by the sources. Open them with care.
- discuss.rubyonrails.org Exploit Vendor Advisory
- github.com Patch
- github.com Patch
- github.com Exploit Vendor Advisory
- github.com Exploit Third Party Advisory
- security.netapp.com Third Party Advisory