RubySec

Providing security resources for the Ruby community

CVE-2026-33168 (actionview): Rails has a possible XSS vulnerability in its Action View tag helpers

Rails has a possible XSS vulnerability in its Action View tag helpers

Published: March 23, 2026

SECURITY IDENTIFIERS

GEM

actionview

FRAMEWORK

Ruby on Rails

PATCHED VERSIONS

~> 7.2.3, >= 7.2.3.1 ~> 8.0.4, >= 8.0.4.1 >= 8.1.2.1

DESCRIPTION

Impact

When a blank string is used as an HTML attribute name in Action View tag helpers, the attribute escaping is bypassed, producing malformed HTML. A carefully crafted attribute value could then be misinterpreted by the browser as a separate attribute name, possibly leading to XSS. Applications that allow users to specify custom HTML attributes are affected.

Releases

The fixed releases are available at the normal locations.

RELATED