Rails has a possible XSS vulnerability in its Action View tag helpers
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.
Summary
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.
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 | actionview | 8.1.0.beta1 to before 8.1.2.1; 8.0.0.beta1 to before 8.0.4.1; before 7.2.3.1 | 8.1.2.1, 8.0.4.1, 7.2.3.1 | Patch available | CNA |
| — | actionview (RubyGems) | 8.1.0.beta1 to before 8.1.2.1 | 8.1.2.1 | Patch available | GHSA-v55j-83pf-r9cq |
| — | actionview (RubyGems) | 8.0.0.beta1 to before 8.0.4.1 | 8.0.4.1 | Patch available | GHSA-v55j-83pf-r9cq |
| — | actionview (RubyGems) | before 7.2.3.1 | 7.2.3.1 | Patch available | GHSA-v55j-83pf-r9cq |
- actionview VendorRails Affected 8.1.0.beta1 to before 8.1.2.1; 8.0.0.beta1 to before 8.0.4.1; before 7.2.3.1 Fixed in 8.1.2.1, 8.0.4.1, 7.2.3.1 Patch available CNA
- actionview (RubyGems) Vendor— Affected 8.1.0.beta1 to before 8.1.2.1 Fixed in 8.1.2.1 Patch available GHSA-v55j-83pf-r9cq
- actionview (RubyGems) Vendor— Affected 8.0.0.beta1 to before 8.0.4.1 Fixed in 8.0.4.1 Patch available GHSA-v55j-83pf-r9cq
- actionview (RubyGems) Vendor— Affected before 7.2.3.1 Fixed in 7.2.3.1 Patch available GHSA-v55j-83pf-r9cq
Remediation
- Fix · CNA actionview (rails) Fixed in 8.1.2.1, 8.0.4.1, 7.2.3.1
- Fix · GHSA-v55j-83pf-r9cq actionview (RubyGems) Fixed in 8.1.2.1 Advisory →
- Fix · GHSA-v55j-83pf-r9cq actionview (RubyGems) Fixed in 8.0.4.1 Advisory →
- Fix · GHSA-v55j-83pf-r9cq actionview (RubyGems) Fixed in 7.2.3.1 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat 3scale API Management Platform 2 | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-33168
- 2026-10-03 Alias added: GHSA-v55j-83pf-r9cq
References
Other 9
- https://github.com/rails/rails/security/advisories/GHSA-v55j-83pf-r9cq
- https://github.com/rails/rails/commit/0b6f8002b52b9c606fd6be9e7915d9f944cf539c
- https://github.com/rails/rails/commit/63f5ad83edaa0b976f82d46988d745426aa4a42d
- https://github.com/rails/rails/commit/c79a07df1e88738df8f68cb0ee759ad6128ca924
- https://github.com/rails/rails/releases/tag/v7.2.3.1
- https://github.com/rails/rails/releases/tag/v8.0.4.1
- https://github.com/rails/rails/releases/tag/v8.1.2.1
- https://github.com/rails/rails
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/CVE-2026-33168.yml
More Rails vulnerabilities
- TI-2014-00124 Directory traversal vulnerability in actionpack/lib/abstract_controller/base.rb in the… KEVCVSS 3.1HIGH 7.5
- TI-2019-03828 Path traversal in Rails https://github.com/rails/rails KEVCVSS 3.1HIGH 7.5
- TI-2016-00672 Directory traversal vulnerability in Action View in Ruby on Rails before 3.2.22.1, 4.0.x… 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-33168 · CVE Program
- CVE-2026-33168 · NVD
- FIRST EPSS
- GHSA-v55j-83pf-r9cq · GitHub Advisory Database · CC BY 4.0
- CVE-2026-33168 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences