PT-2024-5871 · Unknown+2 · Ruby On Rails+2

·

CVE-2024-26143

·

Published

2024-02-24

·

Updated

2025-05-17

CVSS v2.0

6.4

Medium

VectorAV:N/AC:L/Au:N/C:P/I:P/A:N
Name of the Vulnerable Software and Affected Versions Ruby on Rails versions prior to 7.1.3.1 Ruby on Rails versions prior to 7.0.8.1
Description 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 related to the incorrect neutralization of input data during web page generation, which can allow an attacker to conduct cross-site scripting.
Recommendations For versions prior to 7.1.3.1, update to version 7.1.3.1 to fix the vulnerability. For versions prior to 7.0.8.1, update to version 7.0.8.1 to fix the vulnerability. As a temporary workaround, consider disabling the use of translation methods like translate or t on controllers with keys ending in " html" and default values containing untrusted user input, until a patch is available. Restrict access to the vulnerable translation helpers in Action Controller to minimize the risk of exploitation. Avoid using the :default key with untrusted user input in the affected translation methods until the issue is resolved.

Exploit

Fix

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2025-3714
BDU:2024-06653
BIT-RAILS-2024-26143
CVE-2024-26143
GHSA-9822-6M93-XQF4
OPENSUSE-SU-2024:14067-1
OPENSUSE-SU-2024:14074-1
OPENSUSE-SU-2025:15110-1
OPENSUSE-SU-2025:15124-1

Affected Products

Alt Linux
Red Os
Ruby On Rails