Possible XSS in Action View highlight helper
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 before 8.0.5.2 and from 8.1 before 8.1.4.1 has a cross-site scripting flaw in the highlight helper. The helper substitutes matched text into a custom :highlighter string without escaping it and marks the result HTML-safe, so quote characters can end a quoted attribute value and add attributes to the element (CWE-79). An unauthenticated remote attacker can exploit this through user-controlled highlighted text when an application places the placeholder inside an attribute value, and user interaction is required. The default highlighter and the block form are not affected.
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, ActionView::Helpers::TextHelper#highlight substitutes each matched phrase into the :highlighter string without escaping it and returns the result marked HTML-safe. Because sanitizing leaves quote characters in text unescaped, a match substituted into a quoted attribute value of the highlighter, such as the <a href="search?q=\1"> form shown in the method's documentation, could end the attribute value and add attributes to the element, possibly leading to XSS. Applications are affected when they pass a :highlighter that places a placeholder inside an attribute value and highlight text or phrases that a user controls. The default <mark>\1</mark> highlighter and the block form are not 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-v6rj-xm57-3p59 |
| — | actionview (RubyGems) | before 8.0.5.2 | 8.0.5.2 | Patch available | GHSA-v6rj-xm57-3p59 |
- 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-v6rj-xm57-3p59
- actionview (RubyGems) Vendor— Affected before 8.0.5.2 Fixed in 8.0.5.2 Patch available GHSA-v6rj-xm57-3p59
Remediation
Upgrade actionview to 8.0.5.2 or 8.1.4.1, and upgrade rails to 8.0.5.2 or 8.1.4.1 to match. The sources list no advisory identifiers for this fix. CISA has not added this issue to its Known Exploited Vulnerabilities catalog.
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-v6rj-xm57-3p59 actionview (RubyGems) Fixed in 8.1.4.1 Advisory →
- Fix · GHSA-v6rj-xm57-3p59 actionview (RubyGems) Fixed in 8.0.5.2 Advisory →
Timeline
- 2026-11-10 Threatist record created from CVE-2026-126078
- 2026-11-12 Priority changed: MEDIUM → LOW
- 2026-11-12 CISA SSVC decision points changed
- 2026-11-13 Alias added: GHSA-v6rj-xm57-3p59
- 2026-11-13 Fix available: RubyGems/[email protected], RubyGems/[email protected] · GHSA-v6rj-xm57-3p59
- 2026-11-13 CVSS score added · GHSA-v6rj-xm57-3p59
- 2026-11-13 Weakness changed · GHSA-v6rj-xm57-3p59
- 2026-11-13 8 new references · GHSA-v6rj-xm57-3p59
References
Other 7
- https://github.com/rails/rails/security/advisories/GHSA-v6rj-xm57-3p59
- https://github.com/rails/rails/commit/06938194b4fd59e1d2c8ab4a781f3c1e2b763425
- https://github.com/rails/rails/commit/c796f6198837479ada13290eb8fa767b5219a58a
- 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-v6rj-xm57-3p59.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-126078 · CVE Program
- CVE-2026-126078 · NVD
- FIRST EPSS
- GHSA-v6rj-xm57-3p59 · 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