XSS via Unsanitized :default in Rails 7.x translation helpers (ActionController)
CVE-2024-26143 Published on February 27, 2024

Rails Possible XSS Vulnerability in Action Controller
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.

Github Repository NVD

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.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
NONE
User Interaction:
REQUIRED
Scope:
CHANGED
Confidentiality Impact:
LOW
Integrity Impact:
LOW
Availability Impact:
NONE

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

stack.watch emails you whenever new vulnerabilities are published in Ruby on Rails Rails or Oracle. Just hit a watch button to start following.

 
 

Affected Versions

rails:

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
1.30%
Percentile
79.56%

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.