Technical impact
Rails Action View can generate malformed HTML when a user supplies a custom attribute name that is a whitespace‑only string represented as a Symbol. Because the attribute escaping code does not treat such names as blank, it outputs an attribute with no name, producing malformed markup. A carefully crafted value for that attribute can then be interpreted by the browser as a bona‑fide attribute name, enabling the injection of malicious scripts and leading to cross‑site scripting attacks. The flaw exists only when applications allow users to specify arbitrary attribute names in view helpers such as image_tag, video_tag, and audio_tag.
Affected Systems
The vulnerability affects the rails:rails framework in all releases older than 8.0.5.2 and 8.1.4.1. Users running Rails versions 8.0.5.x (prior to 8.0.5.2) or 8.1.x (prior to 8.1.4.1) are potentially exposed.
Risk and Exploitability
The CVSS score of 4.7 denotes moderate impact, while the EPSS score indicates that exploitation is unlikely with a probability of less than 1 %. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires the application to accept user‑defined attribute names; an attacker could supply a whitespace‑only name with a value containing script payloads. If the application renders those views unfiltered, the browser may execute the embedded code. Despite the low probability, the potential for widespread XSS makes timely remediation important.
Debian DLA
Github GHSA