Cross-Site Scripting Risk in Action View Framework by Rails
CVE-2026-126079
6.1MEDIUM
What is CVE-2026-126079?
The Action View framework for Rails has a vulnerability that allows XSS due to improper handling of untrusted text when used with the HTML5 sanitizer. Prior to versions 8.1.4.1 and 8.0.5.2, the sanitizer could permit the serialization of unescaped '<' and '>' characters within attribute values, leading to potential injection of malicious markup. Specifically, when utilizing text helpers like highlight and simple_format with unsafe HTML options, untrusted input could generate live elements in the rendered output, exposing applications to XSS attacks. Users are recommended to upgrade to the patched versions for enhanced security.
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
