Skip to main content

Ruby on Rails Action View CVE-2026-126070

| EUVDEUVD-2026-122994 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-10 security-advisories@github.com GHSA-rq8q-p985-fjq7
6.1
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Craft input with quote and event handler
  2. Exploit
    Submit to app rendering strip_tags in HTML attribute
  3. Execution
    Injected quote closes attribute, adds attributes
  4. Impact
    Script 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.

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 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 &quot; and &#39; 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

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

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 &quot; and &#39; 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

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 6.1 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/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, 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

EPSS Score
0.3%
Top 81% exploitable
Prevalence
High
Action View ships with Ruby on Rails, a very widely deployed 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