Live threats

All CVEs / Rubyonrails

CVE-2024-26143Rubyonrails Rails

Medium 6.1 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Rails.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
rubyonrailsrails≥ 7.0.0 < 7.0.8.1
rubyonrailsrails≥ 7.1.0 < 7.1.3.1

Official sources

References

Links published by the sources. Open them with care.