Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify app using attribute-placeholder highlighter
-
DeliverySubmit phrase with quote and injected attributes
-
ExploitQuote ends highlighter attribute value
-
ExecutionVictim renders highlighted output (UI:R)
-
ImpactAttacker 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 |
| 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 |
| Exploit ScenarioDerived | An attacker submits a search term or other highlighted string containing a quote and extra attributes, e.g. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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 " and ', 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
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
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.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
More in Ruby On Rails
View alllib/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
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
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
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
Unauthenticated attackers can write arbitrary files on a Ruby on Rails host and, when Active Storage uses the Disk servi
Unauthenticated remote code execution is achievable in Square Squash (all versions through commit e73f280) through a two
SQL injection vulnerability in the 'order' method in Ruby on Rails 5.1.4 and earlier allows remote attackers to execute
SQL injection vulnerability in the 'reorder' method in Ruby on Rails 5.1.4 and earlier allows remote attackers to execut
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
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
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
Authenticated store customers can seize other shoppers' guest carts in Spree Commerce by calling PATCH /api/v3/store/car
EUVD-2026-122927
GHSA-v6rj-xm57-3p59
NVD
CVE.org
EPSS
Exploit-DB