CVE-2026-126078: rails · Cross-site Scripting
Affects railsSource CVE Database V5
Not known to be exploited · CVSS 6.1 Medium : upgrade to 8.1.4.1 or 8.0.5.2 when convenient.
Data as of 10 Nov 2026, 21:20 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 6.1 |
|---|
- Patch
- Available – fixed in 8.1.4.1, 8.0.5.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 10 Nov 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 10 Nov 2026.
What to do
Upgrade rails to 8.1.4.1 or 8.0.5.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| railsrails | Affected
| Fixed in
|
| railsrails | Affected
| Fixed in
|
AI-suggested
Upgrade Rails to version 8.1.4.1 or 8.0.5.2 or later, where this vulnerability is fixed. Avoid using custom :highlighter strings that place placeholders inside HTML attribute values with user-controlled input. The default highlighter and block form are safe. No other mitigation is indicated.
Description
A Cross-site Scripting (XSS) vulnerability exists in the Rails Action View component's TextHelper#highlight method prior to versions 8.1.4.1 and 8.0.5.2. The vulnerability arises when a custom :highlighter string places a placeholder inside an HTML attribute value and highlights user-controlled text or phrases, potentially allowing injection of malicious attributes. The default highlighter and block form are not affected. This issue is fixed in Rails versions 8.1.4.1 and 8.0.5.2.
References
- github.com/rails/rails/security/advisories/GHSA-v6rj-xm57-3p59 (opens in a new tab)
- github.com/rails/rails/commit/06938194b4fd59e1d2c8ab4a781f3c1e2b763425 (opens in a new tab)
- github.com/rails/rails/commit/c796f6198837479ada13290eb8fa767b5219a58a (opens in a new tab)
- github.com/rails/rails/releases/tag/v8.0.5.2 (opens in a new tab)
- github.com/rails/rails/releases/tag/v8.1.4.1 (opens in a new tab)