CVE-2026-33168: rails actionview · Cross-site Scripting
Affects rails actionviewSource CVE Database V5
Not known to be exploited · CVSS 2.3 Low · fixed in 8.1.2.1 : update rails actionview when convenient.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 52% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 8.1.2.1, 8.0.4.1, 7.2.3.1
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 23 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade rails actionview to 8.1.2.1, 8.0.4.1 or 7.2.3.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| railsactionview | Affected
| Fixed in
|
| railsactionview | Affected
| Fixed in
|
| railsactionview | Affected
| Fixed in
|
AI-suggested
Organizations should upgrade Rails to versions 8.1.2.1, 8.0.4.1, or 7.2.3.1 or later, where the vulnerability is patched. Developers should audit their codebases to identify any use of custom HTML attributes derived from user input and sanitize or validate these inputs rigorously. Avoid allowing users to specify arbitrary HTML attribute names or values. Implement Content Security Policy (CSP) headers to reduce the impact of potential XSS attacks by restricting script execution sources. Additionally, conduct thorough security testing on web applications that use Action View tag helpers to detect malformed HTML or injection points. Monitoring web application logs for unusual input patterns or errors related to HTML rendering can help detect attempted exploitation.
Description
Action View provides conventions and helpers for building web pages with the Rails framework. Prior to versions 8.1.2.1, 8.0.4.1, and 7.2.3.1, when a blank string is used as an HTML attribute name in Action View tag helpers, the attribute escaping is bypassed, producing malformed HTML. A carefully crafted attribute value could then be misinterpreted by the browser as a separate attribute name, possibly leading to XSS. Applications that allow users to specify custom HTML attributes are affected. Versions 8.1.2.1, 8.0.4.1, and 7.2.3.1 contain a patch.
References
- github.com/rails/rails/security/advisories/GHSA-v55j-83pf-r9cq (opens in a new tab)
- github.com/rails/rails/commit/0b6f8002b52b9c606fd6be9e7915d9f944cf539c (opens in a new tab)
- github.com/rails/rails/commit/63f5ad83edaa0b976f82d46988d745426aa4a42d (opens in a new tab)
- github.com/rails/rails/commit/c79a07df1e88738df8f68cb0ee759ad6128ca924 (opens in a new tab)
- github.com/rails/rails/releases/tag/v7.2.3.1 (opens in a new tab)
- github.com/rails/rails/releases/tag/v8.0.4.1 (opens in a new tab)
- github.com/rails/rails/releases/tag/v8.1.2.1 (opens in a new tab)