Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft input with quote and event handler
-
ExploitSubmit to app rendering strip_tags in HTML attribute
-
ExecutionInjected quote closes attribute, adds attributes
-
ImpactScript executes in victim's 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 the target application to (1) pass untrusted input through Action View's strip_tags and (2) render that output inside a quoted HTML attribute value - the advisory names the title attribute and <meta content> tags specifically. The flaw is that strip_tags returned html_safe output with " and ' left unencoded, so ERB does not re-escape them and the attacker-supplied quote can close the attribute. Limiting factors: output rendered as normal element content is NOT affected; the CVSS vector's UI:R means a victim must view the rendered page; and the vendor-documented workaround (routing output through a tag helper such as tag.a(title: strip_tags(user_input)), which escapes attribute values) neutralizes it without upgrading. This is not exploitable against a default/arbitrary Rails app - only against ones using this specific strip_tags-into-attribute pattern on untrusted data. |
| Impact | This is a genuine but conditional, moderate-severity XSS (CWE-79), confirmed by the Rails GHSA-rq8q-p985-fjq7 advisory and the source diff: strip_tags marked output html_safe while the underlying full_sanitizer encoded only &, < and >, leaving " and ' raw, so ERB did not re-escape them. The input signals are coherent rather than conflicting: CVSS 3.1 of 6.1 (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) matches a reflected/stored XSS with no integrity/confidentiality beyond the browser scope-change, and the vuln.today Decision label is 'this_month' (not act_now/emergency). There is no CISA KEV listing and no EPSS value supplied, and no public exploit identified at time of analysis - only a responsible HackerOne report (lucasluitjes) via the GitHub advisory, so exploitation is theoretical to date. The real-world risk is sharply gated by a code pattern on the defender side: only applications that render strip_tags output from untrusted input inside a quoted HTML attribute (e.g. a title attribute or <meta content>) are exploitable; strip_tags output used as element content is unaffected. Net: a real priority to patch for exposed Rails apps, but not a drop-everything emergency - its practical reach depends entirely on whether vulnerable attribute-context usage exists in a given codebase. |
| Exploit ScenarioDerived | An attacker submits a value containing a double or single quote plus an event handler (e.g. " onmouseover=alert(1) x=") into a field an application later renders through strip_tags into a quoted HTML attribute such as a page's title or a <meta content> tag. Because strip_tags marked the result html_safe without encoding the quotes, the injected quote closes the attribute and adds attacker-controlled attributes, and a victim viewing the page triggers script execution. No public exploit code was identified at time of analysis; the issue was reported privately by a HackerOne researcher and reproduction requires the application to use strip_tags output in attribute context. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 11, 2026
A cross-site scripting flaw in Action View's strip_tags helper, fixed in 8.1.4.1 and 8.0.5.2, lets untrusted input that is passed through strip_tags and then rendered inside a quoted HTML attribute value break out of that attribute and inject new attributes. Only applications using that specific pattern - for example placing strip_tags output in a title attribute or a <meta content> tag - are affected, and output rendered as normal element content is not exploitable. No public exploit code or confirmed active exploitation was identified at time of analysis; the CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N, 6.1) reflects a user-interaction-dependent attack that requires the victim to view the rendered page.
RemediationAI
Vendor-released patches are available: upgrade Action View / Rails to 8.1.4.1 for the 8.1 branch or 8.0.5.2 for the 8.0 branch, per GHSA-rq8q-p985-fjq7. Organizations that cannot upgrade immediately can apply the vendor-supplied backports - commit 568b19cb860322885593e308a7f27aceb779e9d7 for 8.1 and commit c3772a10f405f9644125cbb484adfd2aa7a25a59 for 8.0 (patch files linked from the advisory). Rails documents a code-level workaround that avoids the upgrade: never interpolate strip_tags output directly into an attribute in ERB; instead route it through a tag helper, which escapes attribute values, for example tag.a(title: strip_tags(user_input)). Be aware that after patching, strip_tags output used outside HTML (text templates, JSON) will contain " and ' instead of raw quotes and can be decoded with CGI.unescapeHTML. No public exploit code or confirmed active exploitation was identified at time of analysis.
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
Action View's strip_tags delegates to the full_sanitizer, which stripped markup but only entity-encoded the ampersand, less-than and greater-than characters; the double and single quotes survived unchanged. strip_tags then marked the result html_safe, so when ERB interpolated it into a template it deliberately skipped its usual HTML escaping. In element content that is harmless, but in a quoted attribute value a raw quote terminates the attribute, allowing an attacker to append arbitrary attributes such as event handlers - the classic CWE-79 reflected XSS pattern. The upstream fix replaces the blanket html_safe marking with ERB::Util.html_escape_once on the sanitized output, so all five HTML-significant characters (&, <, >, " and ') are encoded without double-encoding existing entities, and the related sanitize helper documentation now warns that its output is safe only as element content. Rails maintainers note that strip_tags output consumed outside HTML, such as in text templates or JSON, will now show " and ' instead of raw quotes, decodable with CGI.unescapeHTML.
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
Remote unauthenticated injection (AV:N/PR:N) requiring a victim to load the page (UI:R); scope change into the browser (S:C) with limited confidentiality/integrity impact typical of reflected/stored XSS and no availability impact.
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, 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.
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-122994
GHSA-rq8q-p985-fjq7
NVD
CVE.org
EPSS
Exploit-DB