Skip to main content

Action View CVE-2026-126079

| EUVDEUVD-2026-122928 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-10 security-advisories@github.com GHSA-2p2f-4rq4-gjwc
6.1
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Submit untrusted text with attribute-wrapped markup
  2. Exploit
    Sanitizer leaves markup inert, Nokogiri serializes < > unescaped
  3. Execution
    highlight/simple_format string-split emits it as live element
  4. Impact
    Victim renders page, injected script executes

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 a specific stack and usage: the application must use the HTML5 sanitizer (Rails::HTML5::Sanitizer - the default vendor on CRuby only for apps running load_defaults 7.1 or later), with Nokogiri before 1.19.5, and must pass untrusted text to the highlight helper, or to simple_format together with html_options. The payload must place markup inside an attribute value and include either an unescaped '>' or a blank line so the helper's string-splitting re-emits the inert markup as a live element. Limiting factors: victim user interaction is required to render the output (UI:R); applications using the HTML4 sanitizer (Rails::HTML4::Sanitizer) are not affected; applications that never pass untrusted input to these two helpers are not affected; and upgrading Nokogiri to 1.19.5+ alone neutralizes the issue without a Rails upgrade.

Impact

This is a moderate-severity, context-specific XSS (CWE-79) rather than a drop-everything emergency. The input CVSS is 6.1 with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - network-reachable, no privileges, but requiring victim user interaction (viewing the rendered output) and yielding only limited confidentiality/integrity impact typical of reflected/stored XSS. No EPSS score and no KEV listing are present in the input, so there is no quantitative exploitation-probability signal and no evidence of active exploitation; the only priority signal is the vendor/aggregator Decision label 'this_month', which aligns with scheduled patching rather than act_now/emergency. No standalone weaponized exploit is supplied, though the fix commit includes regression tests that demonstrate the triggering payloads (e.g. an attribute value containing an unescaped '>' or a blank line wrapping an <img src=x onerror=alert(1)>). Importantly, exploitability is gated by multiple application-side preconditions: the HTML5 sanitizer must be in use (the default on CRuby only for apps on load_defaults 7.1+), Nokogiri must be before 1.19.5, and the app must pass untrusted text specifically to highlight, or to simple_format with html_options. Net assessment: a legitimate but bounded risk - prioritize patching for Rails apps meeting those conditions, treat as routine (non-urgent) for apps that do not use these helpers on untrusted input or that use the HTML4 sanitizer.

Exploit ScenarioDerived

An attacker submits untrusted text (e.g. a user-controlled field later shown with highlight, or passed to simple_format with html_options) containing an unescaped '>' or a blank line inside an attribute value that wraps otherwise-inert markup such as <img src=x onerror=alert(1)>. Because Nokogiri before 1.19.5 serializes '<' and '>' unescaped in attribute values, the helper's string-level splitting re-emits that markup as a live element in html_safe output. When a victim views the rendered page (UI:R), the injected script executes in their browser; the fix commit's tests demonstrate the payloads but no independent weaponized exploit is provided.

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 text helpers highlight and simple_format allows markup that the HTML5 sanitizer left inert inside an attribute value to be re-emitted as live elements in the helper's html_safe output. Affected are Rails applications that use Rails::HTML5::Sanitizer (the default vendor on CRuby for apps running load_defaults 7.1 or later) together with Nokogiri before 1.19.5, and that pass untrusted text to highlight, or to simple_format together with html_options; the crafted output must be rendered to a victim. It is a moderate CVSS 6.1 issue (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) with no public exploit identified at time of analysis, fixed in Rails 8.1.4.1 and 8.0.5.2.

RemediationAI

Upgrade to Rails 8.1.4.1 or 8.0.5.2, which bump the actionview dependency to rails-html-sanitizer >= 1.7.2, which in turn requires Loofah 2.25.3 and Nokogiri 1.19.5; release notes are at https://github.com/rails/rails/releases/tag/v8.1.4.1 and https://github.com/rails/rails/releases/tag/v8.0.5.2, with backportable patches at https://github.com/rails/rails/commit/adc3a32d4abea77ed3aacf6f5fb71cfc005bef73.patch (8.1) and https://github.com/rails/rails/commit/009ea68342d05d02087c04dae7faaa4e4c1def11.patch (8.0). The vendor notes that upgrading Nokogiri to 1.19.5 or later alone neutralizes the issue, since the escaping lives in its HTML5 serializer, so no Rails upgrade is required if the dependency can be pinned directly; the side effect of both fixes is that < and > inside attribute values are now serialized as &lt; and &gt;, which can change string-comparison assertions or snapshot tests even though the parsed DOM is identical. A second vendor-documented workaround is to switch to the HTML4 sanitizer by setting config.action_view.sanitizer_vendor = Rails::HTML4::Sanitizer, at the cost of losing HTML5 parsing behavior for sanitized content. Applications that cannot change either dependency should avoid passing untrusted input to highlight, or to simple_format together with html_options, until a fixed stack is deployed; note that the affected versions have a vendor-released patch and the priority decision places remediation in a normal monthly cycle rather than an emergency one.

Affected VersionsENISA

rails 8.1, < 8.1.4.1
rails < 8.0.5.2

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

The root cause is CWE-79 and sits in the interaction between Nokogiri's HTML5 serializer and the Action View string-editing helpers rather than in the sanitizer's allowlist logic. Before Nokogiri 1.19.5, the HTML5 serializer emits < and > unescaped inside attribute values, whereas the HTML4 sanitizer path already escapes them as &lt; and &gt;. Action View's highlight and simple_format sanitize their input first and then reprocess the resulting HTML as a plain string - highlight splits on tag boundaries to insert <mark> matches, and simple_format splits into paragraphs on blank lines. Because the serialized attribute value still contains a raw > or a blank line, that string-level split can break out of the attribute context and promote markup the sanitizer had deliberately kept inert into live elements in the returned html_safe buffer. The parsed DOM is unchanged by the fix; only the serialized form differs, so code and tests that compare sanitized HTML as a string may observe the new escaping. The reported vector (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) reflects remote, unauthenticated delivery with mandatory victim interaction and a scope change, since output that the sanitizer intended to be inert crosses into executable markup, with limited confidentiality and integrity impact and no availability impact. Applications using the HTML4 sanitizer, and applications that never feed untrusted text to these two helpers, are outside the vulnerable configuration.

Know when 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

Network-delivered stored/reflected XSS executing in the victim's browser: PR:N since attacker-supplied text suffices, UI:R to render output, S:C and C:L/I:L for cross-context script with A:N.

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, with the HTML5 sanitizer (Rails::HTML5::Sanitizer, the default vendor on CRuby for applications using load_defaults 7.1 or later), Nokogiri before 1.19.5 serializes < and > unescaped inside attribute values. The Action View text helpers highlight and simple_format sanitize their input and then process the resulting HTML as a string: highlight splits it on tag boundaries to insert matches, and simple_format splits it into paragraphs on blank lines. An unescaped > or a blank line inside an attribute value could cause markup in that value, which the sanitizer left inert, to be emitted as live elements in the helper's html_safe output, possibly leading to XSS. Applications that use the HTML5 sanitizer and pass untrusted text to highlight, or to simple_format with html_options, are 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.

More in Rails

View all
CVE-2016-0752 HIGH POC
7.5 Feb 16

Directory traversal vulnerability in Action View in Ruby on Rails before 3.2.22.1, 4.0.x and 4.1.x before 4.1.14.1, 4.2.

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-2014-0130 HIGH
7.5 May 07

Directory traversal vulnerability in actionpack/lib/abstract_controller/base.rb in the implicit-render implementation in

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-2019-5420 CRITICAL POC
9.8 Mar 27

A remote code execution vulnerability in development mode Rails <5.2.2.1, <6.0.0.beta3 can allow an attacker to guess th

CVE-2020-8165 CRITICAL POC
9.8 Jun 19

A deserialization of untrusted data vulnernerability exists in rails < 5.2.4.3, rails < 6.0.3.1 that can allow an attack

CVE-2020-8163 HIGH POC
8.8 Jul 02

The is a code injection vulnerability in versions of Rails prior to 5.0.1 that wouldallow an attacker who controlled the

CVE-2017-17917 HIGH POC
8.1 Dec 29

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

CVE-2017-17916 HIGH POC
8.1 Dec 29

SQL injection vulnerability in the 'find_by' 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

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