Read the docs

Cross-site scripting in Action View strip_tags output

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 in Rails marks the output of strip_tags as html_safe, but its sanitizer encodes only ampersand, less-than and greater-than, leaving double and single quotes unencoded. Untrusted input rendered inside a quoted HTML attribute, such as a title attribute or a meta content tag, can close the attribute and add new attributes, which may lead to cross-site scripting (CWE-79). Output rendered as element content is not affected. The flaw affects Action View before 8.0.5.2 and from 8.1.0.beta1 before 8.1.4.1.

Written with Claude Haiku 5.5 from the sources below · 2026-11-13

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, strip_tags in Action View returns its sanitized output marked html_safe, but the underlying sanitizer encodes only &, < and >, leaving " and ' unencoded. Because ERB does not escape a string marked html_safe, untrusted input passed through strip_tags and rendered inside a quoted HTML attribute value could close the attribute and add new attributes, possibly leading to XSS. Applications that render strip_tags output from untrusted input inside an HTML attribute, for example in a title attribute or a <meta content> tag, are affected. Output rendered as element content is not 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.00269 19th 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-rq8q-p985-fjq7
—actionview (RubyGems)before 8.0.5.28.0.5.2Patch availableGHSA-rq8q-p985-fjq7
  • 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-rq8q-p985-fjq7
  • actionview (RubyGems) Vendor— Affected before 8.0.5.2 Fixed in 8.0.5.2 Patch available GHSA-rq8q-p985-fjq7

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

Upgrade the rails gem and actionview to 8.0.5.2 or 8.1.4.1, the fixed versions for their release lines.

Written with Claude Haiku 5.5 from the sources below · 2026-11-13

  • Fix · CNA rails (rails) Fixed in 8.0.5.2, 8.1.4.1
  • Fix · GHSA-rq8q-p985-fjq7 actionview (RubyGems) Fixed in 8.1.4.1 Advisory →
  • Fix · GHSA-rq8q-p985-fjq7 actionview (RubyGems) Fixed in 8.0.5.2 Advisory →

Timeline

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

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