Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit untrusted text with attribute-wrapped markup
-
ExploitSanitizer leaves markup inert, Nokogiri serializes < > unescaped
-
Executionhighlight/simple_format string-split emits it as live element
-
ImpactVictim 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 |
| 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 |
| Exploit ScenarioDerived | An attacker submits untrusted text (e.g. a user-controlled field later shown with |
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 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 < and >, 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
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
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 < and >. 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
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
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.
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, 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
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.
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.
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
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
Directory traversal vulnerability in actionpack/lib/abstract_controller/base.rb in the implicit-render implementation in
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
A remote code execution vulnerability in development mode Rails <5.2.2.1, <6.0.0.beta3 can allow an attacker to guess th
A deserialization of untrusted data vulnernerability exists in rails < 5.2.4.3, rails < 6.0.3.1 that can allow an attack
The is a code injection vulnerability in versions of Rails prior to 5.0.1 that wouldallow an attacker who controlled the
SQL injection vulnerability in the 'where' method in Ruby on Rails 5.1.4 and earlier allows remote attackers to execute
SQL injection vulnerability in the 'find_by' 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
EUVD-2026-122928
GHSA-2p2f-4rq4-gjwc
NVD
CVE.org
EPSS
Exploit-DB