XSS Vulnerability in Action View Framework for Rails by Ruby
CVE-2026-126078
6.1MEDIUM
What is CVE-2026-126078?
The Action View framework in Ruby on Rails has a vulnerability that allows for Cross-Site Scripting (XSS) attacks due to improper handling of matched phrases substituted into the :highlighter string. In specific versions prior to 8.1.4.1 and 8.0.5.2, this vulnerability enables potential attackers to manipulate quoted attribute values by including malicious content. The flaw arises when user-controlled text is highlighted without adequate sanitization, leading to unsafe HTML being generated. This issue has been addressed in the latest releases.
Affected Version(s)
rails < 8.0.5.2 < 8.0.5.2
rails >= 8.1, < 8.1.4.1 < 8.1, 8.1.4.1
