Read the docs

Action View: Possible XSS vulnerability in Action View text helpers

Priority LOW 27CWE-79Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00338 27th percentileScored 2026-11-16
Fix Fixed rails (rails): 8.0.5.2, 8.1.4.1actionview (RubyGems): 8.1.4.1, 8.0.5.2

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

VendorProductAffected versionsFixed inStatusSource
Railsrailsbefore 8.0.5.2; 8.1 to before 8.1.4.18.0.5.2, 8.1.4.1Patch availableCNA
—actionview (RubyGems)8.1.0.beta1 to before 8.1.4.18.1.4.1Patch availableGHSA-2p2f-4rq4-gjwc
—actionview (RubyGems)before 8.0.5.28.0.5.2Patch availableGHSA-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

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*——Rails
  • cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:* Versions — — ·Rails

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

  1. 2026-11-10 Threatist record created from CVE-2026-126079
  2. 2026-11-12 Priority changed: MEDIUM → LOW
  3. 2026-11-13 Alias added: GHSA-2p2f-4rq4-gjwc
  4. 2026-11-13 Fix available: RubyGems/[email protected], RubyGems/[email protected] · GHSA-2p2f-4rq4-gjwc
  5. 2026-11-13 CVSS score added · GHSA-2p2f-4rq4-gjwc
  6. 2026-11-13 Weakness changed · GHSA-2p2f-4rq4-gjwc
  7. 2026-11-13 9 new references · GHSA-2p2f-4rq4-gjwc
  8. 2026-11-13 CISA SSVC decision points changed

References

  • 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
See all 185 →

Sources