CVE-2026-33168

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

Published Mar 23, 2026 CVSS 4.0 · 2.3 Low EPSS < 1% KEV · Not listed
Description
Action View provides conventions and helpers for building web pages with the Rails framework. Prior to versions 8.1.2.1, 8.0.4.1, and 7.2.3.1, 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. Versions 8.1.2.1, 8.0.4.1, and 7.2.3.1 contain a patch.

Analysis

AI-generated

Technical impact

Rails Action View provides helpers for generating HTML. When a blank string is supplied as an attribute name, the escaping logic is bypassed, producing malformed markup. A malicious attribute value can be interpreted by the browser as a separate attribute, enabling execution of injected scripts. This flaw is identified as a classic XSS weakness (CWE‑79).

Affected Systems

Ruby on Rails applications that use the ActionView component and allow users to supply custom HTML attributes are affected. All Rails 7.2 releases prior to 7.2.3.1, 8.0 releases prior to 8.0.4.1, and 8.1 releases prior to 8.1.2.1 are vulnerable.

Risk and Exploitability

The CVSS score is 2.3, reflecting low severity, and the vulnerability is not currently listed in the CISA KEV catalog. EPSS data is not available. The risk is primarily limited to applications that permit user‑defined attribute names; the attack can be carried out by sending a crafted HTTP request that causes a view to render a tag with an empty attribute name and an attacker‑controlled value. The likelihood of exploitation is inferred to be low, but the impact can be significant if the affected application exposes user input directly to view rendering.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Rails to version 7.2.3.1, 8.0.4.1, or 8.1.2.1 or later.
  • If an upgrade is not possible, remove or sanitize any custom attribute names supplied by users in view templates.
  • Avoid using tag helpers with empty attribute names in user‑controlled contexts.
  • Review existing views to ensure no residual vulnerabilities remain.

Generated by OpenCVE AI on March 24, 2026 at 03:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4829-1 rails security update
Debian DSA Debian DSA DSA-6546-1 rails security update
Github GHSA Github GHSA GHSA-v55j-83pf-r9cq Rails has a possible XSS vulnerability in its Action View tag helpers
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Rubyonrails
Rubyonrails actionview
Vendors & Products Rubyonrails
Rubyonrails actionview
Type Values Removed Values Added
Description Action View provides conventions and helpers for building web pages with the Rails framework. Prior to versions 8.1.2.1, 8.0.4.1, and 7.2.3.1, 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. Versions 8.1.2.1, 8.0.4.1, and 7.2.3.1 contain a patch.
Title Rails has a possible XSS vulnerability in its Action View tag helpers
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 2.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 24, 2026, 1:36 PM
Reserved
Mar 17, 2026, 9:17 PM
Status
Deferred
Published
Mar 23, 2026, 11:17 PM
Modified
Jun 17, 2026, 10:37 AM
Severity
Moderate
Public date
Mar 23, 2026, 11:01 PM