XSS via Unsanitized :default in Rails 7.x translation helpers (ActionController)
CVE-2024-26143 Published on February 27, 2024
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.
Vulnerability Analysis
CVE-2024-26143 can be exploited with network access, requires user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have a small impact on confidentiality and integrity, and no impact on availability.
Weakness Type
What is a XSS Vulnerability?
The software does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
CVE-2024-26143 has been classified to as a XSS vulnerability or weakness.
Products Associated with CVE-2024-26143
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2024-26143 are published in these products:
Affected Versions
rails:- Version >= 7.0.0, < 7.0.8.1 is affected.
- Version >= 7.1.0, < 7.1.3.1 is affected.
Vulnerable Packages
The following package name and versions may be associated with CVE-2024-26143
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| rubygems | rails | >= 7.0.0, < 7.0.8.1 | 7.0.8.1 |
| rubygems | rails | >= 7.1.0, < 7.1.3.1 | 7.1.3.1 |
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.