Cross-site scripting in Rails Action View tag helpers
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
Action View in Rails, the view helper framework that builds HTML, fails to skip blank attribute names when they are Symbols or whitespace Strings, so malformed attributes are emitted. Affected versions are from 8.1 before 8.1.4.1 and before 8.0.5.2 for the actionview gem and rails package. An attacker who can influence a custom HTML attribute value in an application that lets users specify attribute names could have the browser read it as a separate attribute name, possibly leading to cross-site scripting (CWE-79).
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Rails | rails | 8.1 to before 8.1.4.1; before 8.0.5.2 | 8.1.4.1, 8.0.5.2 | Patch available | CNA |
| — | actionview (RubyGems) | 8.1.0.beta1 to before 8.1.4.1 | 8.1.4.1 | Patch available | GHSA-68p9-83h6-5wpj |
| — | actionview (RubyGems) | before 8.0.5.2 | 8.0.5.2 | Patch available | GHSA-68p9-83h6-5wpj |
- rails VendorRails Affected 8.1 to before 8.1.4.1; before 8.0.5.2 Fixed in 8.1.4.1, 8.0.5.2 Patch available CNA
- actionview (RubyGems) Vendor— Affected 8.1.0.beta1 to before 8.1.4.1 Fixed in 8.1.4.1 Patch available GHSA-68p9-83h6-5wpj
- actionview (RubyGems) Vendor— Affected before 8.0.5.2 Fixed in 8.0.5.2 Patch available GHSA-68p9-83h6-5wpj
Remediation
Upgrade rails and actionview to 8.1.4.1 or to 8.0.5.2, matching the release line in use.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
- Fix · CNA rails (rails) Fixed in 8.1.4.1, 8.0.5.2
- Fix · GHSA-68p9-83h6-5wpj actionview (RubyGems) Fixed in 8.1.4.1 Advisory →
- Fix · GHSA-68p9-83h6-5wpj actionview (RubyGems) Fixed in 8.0.5.2 Advisory →
Timeline
- 2026-11-10 Threatist record created from CVE-2026-126069
- 2026-11-12 Alias added: GHSA-68p9-83h6-5wpj
- 2026-11-12 Fix available: RubyGems/[email protected], RubyGems/[email protected] · GHSA-68p9-83h6-5wpj
- 2026-11-12 CVSS score added · GHSA-68p9-83h6-5wpj
- 2026-11-12 Weakness changed · GHSA-68p9-83h6-5wpj
- 2026-11-12 8 new references · GHSA-68p9-83h6-5wpj
- 2026-11-14 CISA SSVC decision points changed
References
Other 7
- https://github.com/rails/rails/security/advisories/GHSA-68p9-83h6-5wpj
- https://github.com/rails/rails/commit/9190210606ffe52f92fdc75637f8ff69404f22c8
- https://github.com/rails/rails/commit/f47452533e1f28d847c63181b9d5f8b7243ef9a4
- https://github.com/rails/rails/releases/tag/v8.0.5.2
- https://github.com/rails/rails/releases/tag/v8.1.4.1
- https://github.com/rails/rails
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/GHSA-68p9-83h6-5wpj.yml
More Rails vulnerabilities
- TI-2014-00124 Path traversal in Ruby on Rails lets remote attackers read files KEVCVSS 3.1HIGH 7.5
- TI-2019-03828 File content disclosure in Rails Action View KEVCVSS 3.1HIGH 7.5
- TI-2016-00672 Directory traversal in Rails Action View lets attackers read files KEVCVSS 3.1HIGH 7.5
- TI-2019-03830 Command injection in Rails https://github.com/rails/rails CVSS 3.1CRITICAL 9.8
- TI-2026-47043 Action Pack: Possible arbitrary file read and remote code execution in Active Storage variant processing CVSS 4.0CRITICAL 9.5
- TI-2025-18040 Command injection in Rails activestorage CVSS 4.0CRITICAL 9.2
Sources
- CVE-2026-126069 · CVE Program
- CVE-2026-126069 · NVD
- FIRST EPSS
- GHSA-68p9-83h6-5wpj · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences