Action View: Possible XSS vulnerability in Action View text helpers
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- 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 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, with the HTML5 sanitizer (Rails::HTML5::Sanitizer, the default vendor on CRuby for applications using load_defaults 7.1 or later), Nokogiri before 1.19.5 serializes < and > unescaped inside attribute values. The Action View text helpers highlight and simple_format sanitize their input and then process the resulting HTML as a string: highlight splits it on tag boundaries to insert matches, and simple_format splits it into paragraphs on blank lines. An unescaped > or a blank line inside an attribute value could cause markup in that value, which the sanitizer left inert, to be emitted as live elements in the helper's html_safe output, possibly leading to XSS. Applications that use the HTML5 sanitizer and pass untrusted text to highlight, or to simple_format with html_options, 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 | before 8.0.5.2; 8.1 to before 8.1.4.1 | 8.0.5.2, 8.1.4.1 | Patch available | CNA |
| — | actionview (RubyGems) | 8.1.0.beta1 to before 8.1.4.1 | 8.1.4.1 | Patch available | GHSA-2p2f-4rq4-gjwc |
| — | actionview (RubyGems) | before 8.0.5.2 | 8.0.5.2 | Patch available | GHSA-2p2f-4rq4-gjwc |
- rails VendorRails Affected before 8.0.5.2; 8.1 to before 8.1.4.1 Fixed in 8.0.5.2, 8.1.4.1 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-2p2f-4rq4-gjwc
- actionview (RubyGems) Vendor— Affected before 8.0.5.2 Fixed in 8.0.5.2 Patch available GHSA-2p2f-4rq4-gjwc
Remediation
- Fix · CNA rails (rails) Fixed in 8.0.5.2, 8.1.4.1
- Fix · GHSA-2p2f-4rq4-gjwc actionview (RubyGems) Fixed in 8.1.4.1 Advisory →
- Fix · GHSA-2p2f-4rq4-gjwc actionview (RubyGems) Fixed in 8.0.5.2 Advisory →
Timeline
- 2026-11-10 Threatist record created from CVE-2026-126079
- 2026-11-12 Priority changed: MEDIUM → LOW
- 2026-11-13 Alias added: GHSA-2p2f-4rq4-gjwc
- 2026-11-13 Fix available: RubyGems/[email protected], RubyGems/[email protected] · GHSA-2p2f-4rq4-gjwc
- 2026-11-13 CVSS score added · GHSA-2p2f-4rq4-gjwc
- 2026-11-13 Weakness changed · GHSA-2p2f-4rq4-gjwc
- 2026-11-13 9 new references · GHSA-2p2f-4rq4-gjwc
- 2026-11-13 CISA SSVC decision points changed
References
Other 8
- https://github.com/rails/rails/security/advisories/GHSA-2p2f-4rq4-gjwc
- https://github.com/rails/rails/commit/009ea68342d05d02087c04dae7faaa4e4c1def11
- https://github.com/rails/rails/releases/tag/v8.0.5.2
- https://github.com/rails/rails/releases/tag/v8.1.4.1
- http://github.com/rails/rails/commit/adc3a32d4abea77ed3aacf6f5fb71cfc005bef73
- https://github.com/rails/rails/commit/adc3a32d4abea77ed3aacf6f5fb71cfc005bef73
- https://github.com/rails/rails
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/GHSA-2p2f-4rq4-gjwc.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-126079 · CVE Program
- CVE-2026-126079 · NVD
- FIRST EPSS
- GHSA-2p2f-4rq4-gjwc · 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