CVE-2026-126069

Action View: Possible XSS vulnerability in Action View tag helpers

Published Nov 10, 2026 CVSS 3.1 · 4.7 Medium EPSS < 1% KEV · Not listed
Description
Action View is a framework for handling view template lookup and rendering and provides view helpers for building HTML. Prior to 8.1.4.1 and 8.0.5.2, the fix for CVE-2026-33168 skips blank HTML attribute names in Action View tag helpers, but it tests the name before converting it to a string. A Symbol name made only of whitespace, such as :" ", is not blank, because Symbol#blank? is Symbol#empty?, so it reaches the attribute escaping, which emits an attribute with no name and produces malformed HTML. The asset tag helpers, such as image_tag, video_tag and audio_tag, symbolize their options, so a whitespace String name passed to them takes the same path. 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 attribute names are affected. This issue is fixed in versions 8.1.4.1 and 8.0.5.2.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Rails to version 8.1.4.1, 8.0.5.2, or any newer release that contains the patch for the attribute‑name handling bug.
  • If an immediate upgrade is not possible, enforce strict validation on custom HTML attribute names to reject whitespace‑only or blank values before they reach the view helpers.
  • Audit and sanitize all user‑supplied data that may reach any Action View tag helper, ensuring that only safe attribute names and values are used, and run a general security scan to detect any residual vulnerabilities.

Generated by OpenCVE AI on November 13, 2026 at 15:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4934-1 rails security update
Github GHSA Github GHSA GHSA-68p9-83h6-5wpj Action View: Possible XSS vulnerability in 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
First Time appeared Rails
Rails rails
Vendors & Products Rails
Rails rails
Type Values Removed Values Added
Description Action View is a framework for handling view template lookup and rendering and provides view helpers for building HTML. Prior to 8.1.4.1 and 8.0.5.2, the fix for CVE-2026-33168 skips blank HTML attribute names in Action View tag helpers, but it tests the name before converting it to a string. A Symbol name made only of whitespace, such as :" ", is not blank, because Symbol#blank? is Symbol#empty?, so it reaches the attribute escaping, which emits an attribute with no name and produces malformed HTML. The asset tag helpers, such as image_tag, video_tag and audio_tag, symbolize their options, so a whitespace String name passed to them takes the same path. 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 attribute names are affected. This issue is fixed in versions 8.1.4.1 and 8.0.5.2.
Title Action View: Possible XSS vulnerability in Action View tag helpers
Weaknesses CWE-79
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 14, 2026, 3:06 AM
Reserved
Nov 10, 2026, 5:07 PM
Status
Awaiting Analysis
Published
Nov 10, 2026, 9:19 PM
Modified
Nov 14, 2026, 3:17 AM