Skip to main content

Action View CVE-2026-126078

| EUVDEUVD-2026-122927 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-10 security-advisories@github.com GHSA-v6rj-xm57-3p59
6.1
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify app using attribute-placeholder highlighter
  2. Delivery
    Submit phrase with quote and injected attributes
  3. Exploit
    Quote ends highlighter attribute value
  4. Execution
    Victim renders highlighted output (UI:R)
  5. Impact
    Attacker script executes in victim browser

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires BOTH of two application-side conditions, not just any Rails install: (1) the application must call ActionView::Helpers::TextHelper#highlight with a non-default :highlighter that embeds a numbered placeholder (\1) inside a quoted HTML attribute value - the advisory names the documented <a href="search?q=\1"> form - and (2) the text or phrases being highlighted must be attacker/user-controlled. The matched phrase must contain a quote character (" or ') to break out of the attribute, which an attacker controlling the input can supply freely. LIMITING FACTORS: the default <mark>\1</mark> highlighter and the block form are NOT affected; the vulnerability does not trigger against default usage, so only specifically-configured apps are exploitable. Victim interaction is required (UI:R) - a user must render/view the page containing the injected output. Even with the fix, the advisory warns escaping does not make placeholders safe in unquoted attributes, URL/JavaScript/CSS contexts, or HTML-valued attributes like srcdoc.

Impact

This is a genuine but conditional reflected/stored XSS (CWE-79) in Action View's highlight helper, and the signals point to a moderate rather than top-tier priority. The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N, base 6.1) models a network, unauthenticated, scope-changing XSS requiring victim interaction, with only Low confidentiality/integrity impact and no availability impact - consistent with a reflected script-injection flaw. The critical nuance the raw CVSS understates is the exploitation precondition: per the GHSA advisory and commit, only applications that pass a custom :highlighter placing a placeholder inside a quoted attribute value (e.g. the documented <a href="search?q=\1"> form) AND highlight user-controlled text are affected; the default <mark>\1</mark> highlighter and the block form are NOT vulnerable. That makes AC:L optimistic - real-world exploitability depends on a non-default application configuration outside the attacker's control. The Decision label is 'this_month' (not act_now/emergency). KEV status is NO (not CISA-listed), and no EPSS score was provided, so widespread automated exploitation is not evidenced. No standalone weaponized exploit is supplied, though the fix commit's test suite discloses a concrete breakout payload. Net: a real, patch-worthy issue for Rails apps using attribute-placeholder highlighters, but low real-world risk for the large majority of deployments that use the safe default highlighter.

Exploit ScenarioDerived

An attacker submits a search term or other highlighted string containing a quote and extra attributes, e.g. rails" onclick="alert(1), to an application that renders it via highlight() with a highlighter like <a href="search?q=\1">\1</a>. The unescaped quote closes the href attribute and injects an event handler, so when a victim views the page the attacker-controlled JavaScript executes in their session (UI:R). No standalone weaponized exploit is supplied, but the fix commit's regression tests disclose a working breakout payload.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 10, 2026

Cross-site scripting in the Action View highlight helper affects applications running actionview below 8.0.5.2 or 8.1.x below 8.1.4.1: when a custom :highlighter string places a numbered placeholder inside a quoted HTML attribute value and the highlighted text is user-controlled, a phrase containing a quote character can terminate the attribute and add arbitrary attributes to the rendered element. The exposure is conditional - the default <mark>\1</mark> highlighter and the block form of highlight are not affected, so only specifically configured applications are exploitable - and a victim must render the page containing the injected output. No public exploit identified at time of analysis; the vendor advisory credits the Anthropic OSS Scanner, and the fix HTML-escapes each substituted group.

RemediationAI

Vendor-released patch: upgrade the actionview gem to 8.1.4.1 (Rails 8.1 line) or 8.0.5.2 (Rails 8.0 line and earlier), available from the normal distribution channels and tagged at https://github.com/rails/rails/releases/tag/v8.1.4.1 and https://github.com/rails/rails/releases/tag/v8.0.5.2. Organizations that cannot upgrade immediately can apply the vendor-supplied backports for the 8.1 branch (https://github.com/rails/rails/commit/06938194b4fd59e1d2c8ab4a781f3c1e2b763425.patch) or the 8.0 branch (https://github.com/rails/rails/commit/c796f6198837479ada13290eb8fa767b5219a58a.patch). The vendor-documented workaround is to use a :highlighter that places the matched phrase only in element content, such as the default <mark>\1</mark> - this eliminates the attribute-context injection at the cost of losing the custom wrapper markup - or to switch to the block form of highlight, which is not affected. Note that even after patching, placeholders remain unsafe in unquoted attribute values, URL, JavaScript or CSS contexts, and HTML-valued attributes like srcdoc, so those highlighter patterns should be redesigned rather than relied on. Because exploitation requires a victim to view the rendered page, reviewing views that highlight user-supplied search terms or comments with a custom attribute-bearing highlighter is the priority triage step, consistent with the this_month priority decision.

Affected VersionsENISA

rails < 8.0.5.2
rails 8.1, < 8.1.4.1

Affected Packages

rubygems actionview fix: 8.0.5.2, 8.1.4.1
euvd rails fix: 8.0.5.2, 8.1.4.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in rubygems, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

ActionView::Helpers::TextHelper#highlight scans rendered text segment by segment, applies the phrase pattern, and substitutes matches into the :highlighter template before marking the result HTML-safe. The root cause is CWE-79: the sanitization pipeline preserves quote characters in text, and the helper interpolated the matched phrase raw into each \1 placeholder, so a match landing inside a quoted attribute (the documented <a href="search?q=\1">\1</a> form) could close that attribute and introduce new ones. The upstream fix routes every substituted group through ERB::Util.html_escape_once, so quotes render as &quot; and &#39;, restricts expansion to the numbered placeholders \0 through \9 (leaving \k<name>, \& and \\ literal), and prevents a match from beginning on the > that closes a preceding tag so the highlighter cannot consume the tag terminator. The assessed vector is CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N: scope changes because the injection crosses into the generated HTML document, and the high attack complexity reflects the narrow configuration and input preconditions rather than any timing or memory-management property. The advisory is explicit that escaping makes a placeholder safe only as element content or inside a quoted attribute value - it does not make it safe in an unquoted attribute value, a URL, JavaScript or CSS context, or an HTML-valued attribute such as srcdoc.

Know when Ruby On Rails gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 4.7 MEDIUM

AV:N and UI:R for browser-rendered XSS; AC:H because exploitation depends on a non-default attribute-value highlighter configuration beyond attacker control; S:C and C:L/I:L for script injection into the victim context.

3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch available
Nov 10, 2026 - 22:20 EUVD
CVE Published
Nov 10, 2026 - 21:19 cve.org
MEDIUM 6.1

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 72% exploitable
Prevalence
High
Ruby on Rails Action View is a widely deployed enterprise web framework
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2013-0333 HIGH POC
7.5 Jan 30

lib/active_support/json/backends/yaml.rb in Ruby on Rails 2.3.x before 2.3.16 and 3.0.x before 3.0.20 does not properly

CVE-2013-0156 HIGH POC
7.5 Jan 13

active_support/core_ext/hash/conversions.rb in Ruby on Rails before 2.3.15, 3.0.x before 3.0.19, 3.1.x before 3.1.10, an

CVE-2016-2098 HIGH POC
7.3 Apr 07

Action Pack in Ruby on Rails before 3.2.22.2, 4.x before 4.1.14.2, and 4.2.x before 4.2.5.2 allows remote attackers to e

CVE-2013-6414 MEDIUM POC
5.0 Dec 07

actionpack/lib/action_view/lookup_context.rb in Action View in Ruby on Rails 3.x before 3.2.16 and 4.x before 4.0.2 allo

CVE-2026-122006 CRITICAL POC
9.8 Nov 04

Unauthenticated attackers can write arbitrary files on a Ruby on Rails host and, when Active Storage uses the Disk servi

CVE-2026-109391 CRITICAL POC
9.2 Oct 12

Unauthenticated remote code execution is achievable in Square Squash (all versions through commit e73f280) through a two

CVE-2017-17919 HIGH POC
8.1 Dec 29

SQL injection vulnerability in the 'order' method in Ruby on Rails 5.1.4 and earlier allows remote attackers to execute

CVE-2017-17920 HIGH POC
8.1 Dec 29

SQL injection vulnerability in the 'reorder' method in Ruby on Rails 5.1.4 and earlier allows remote attackers to execut

CVE-2012-6496 HIGH POC
7.5 Jan 04

SQL injection vulnerability in the Active Record component in Ruby on Rails before 3.0.18, 3.1.x before 3.1.9, and 3.2.x

CVE-2012-2695 HIGH POC
7.5 Jun 22

The Active Record component in Ruby on Rails before 3.0.14, 3.1.x before 3.1.6, and 3.2.x before 3.2.6 does not properly

CVE-2013-0277 CRITICAL
10.0 Feb 13

ActiveRecord in Ruby on Rails before 2.3.17 and 3.x before 3.1.0 allows remote attackers to cause a denial of service or

CVE-2026-94462 HIGH POC
7.1 Sep 22

Authenticated store customers can seize other shoppers' guest carts in Spree Commerce by calling PATCH /api/v3/store/car

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy