# CVE-2026-126069: Ruby on Rails Action View XSS in tag helpers via whitespace attribute names

Source: https://junglewise.ai/threats/cve-2026-126069-action-view-is-a-framework-for-handling-view-template-lookup-and  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-11-10. Updated: 2026-11-10  
License: CC BY 4.0 with a link back

CVE-2026-126069 · Severity: medium · CVSS 4.7 · Published 2026-11-10

Rails Action View is a templating framework that generates HTML in web applications. A flaw in tag helper functions (image_tag, video_tag, audio_tag, picture_tag) allows attackers to inject whitespace-only HTML attribute names that are misinterpreted by browsers as separate attributes, potentially enabling XSS attacks if the application accepts user-controlled attribute names. This affects Rails applications that allow custom HTML attributes from user input.

Technologies: [Ruby on Rails Rails](https://junglewise.ai/threats/technologies/rails), [actionview (RubyGems)](https://junglewise.ai/threats/technologies/actionview). Vendors: [Ruby on Rails](https://junglewise.ai/threats/vendors/ruby-on-rails), [RubyGems](https://junglewise.ai/threats/vendors/rubygems).

## Quick answers

**Is CVE-2026-126069 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-126069 being exploited in the wild.

**How severe is CVE-2026-126069?** Medium severity, with a CVSS score of 4.7, published 10 November 2026.

**Which products and versions are affected?** Ruby on Rails Rails before 8.0.5.2 and 8.1.4.1; actionview (RubyGems) >= 8.1.0.beta1, < 8.1.4.1.

**Is there a fix for CVE-2026-126069?** Yes: fixed in Rails 8.0.5.2, 8.1.4.1. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-126069 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-126069?** Check whether you run Ruby on Rails Rails or actionview (RubyGems) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in Rails 8.0.5.2, 8.1.4.1

## Technical details

The vulnerability exists in Action View's tag helpers where whitespace-only Symbol attribute names pass a blank check (because Symbol#blank? equals Symbol#empty?) but escape to empty strings, producing malformed HTML with unnamed attributes. The HTML5 tokenizer then misinterprets attribute values as attribute names, allowing XSS. The asset tag helpers symbolize their options, so String attribute names containing only whitespace also reach the vulnerable code path. Fixes test attribute names after converting to string rather than before.

## Affected products

- Ruby on Rails Rails before 8.0.5.2 and 8.1.4.1

## Identifiers

- CVE-2026-126069
- GHSA-68p9-83h6-5wpj

## Timeline

- 2026-11-10: disclosed

## References

- [https://github.com/rails/rails/commit/9190210606ffe52f92fdc75637f8ff69404f22c8](https://github.com/rails/rails/commit/9190210606ffe52f92fdc75637f8ff69404f22c8)
- [https://github.com/rails/rails/commit/f47452533e1f28d847c63181b9d5f8b7243ef9a4](https://github.com/rails/rails/commit/f47452533e1f28d847c63181b9d5f8b7243ef9a4)

## Related threats

- [Rails Action View XSS via HTML5 sanitizer in text helpers](https://junglewise.ai/threats/cve-2026-126079-action-view-is-a-framework-for-handling-view-template-lookup-and)
- [Rails Action View TextHelper highlight XSS](https://junglewise.ai/threats/cve-2026-126078-action-view-is-a-framework-for-handling-view-template-lookup-and)
- [Rails Action View strip_tags XSS in HTML attributes](https://junglewise.ai/threats/cve-2026-126070-action-view-is-a-framework-for-handling-view-template-lookup-and)
- [Rails has a possible XSS vulnerability in its Action View tag helpers](https://junglewise.ai/threats/cve-2026-33168-rails-has-a-possible-xss-vulnerability-in-its-action-view-tag)
- [rails-ujs vulnerable to DOM Based Cross-site Scripting contenteditable HTML Elements](https://junglewise.ai/threats/cve-2023-23913-rails-ujs-vulnerable-to-dom-based-cross-site-scripting)
