Prior to 8.1.4.1 and 8.0.5.2, with the HTML5 sanitizer (Rails::HTML5::Sanitizer, the default vendor on CRuby for
Affects railsSource GCVE Database
Not known to be exploited · CVSS 6.1 Medium.
Data as of 13 Nov 2026, 22:24 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 6.1 |
|---|
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 13 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10railspkg:deb/ubuntu/rails?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSrailspkg:deb/ubuntu/rails?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSrailspkg:deb/ubuntu/rails?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu Pro 22.04 LTSrailspkg:deb/ubuntu/rails?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in– |
Ubuntu Pro 20.04 LTSrailspkg:deb/ubuntu/rails?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in– |
Ubuntu Pro 18.04 LTSrailspkg:deb/ubuntu/rails?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Rails to version 8.1.4.1 or 8.0.5.2 or later, where this issue is fixed. Ensure Nokogiri is updated to version 1.19.5 or newer to properly escape < and > characters inside attribute values. Applications using the HTML5 sanitizer with highlight or simple_format helpers should avoid passing untrusted input without these updates.
Description
A vulnerability in the Rails Action View framework prior to versions 8.1.4.1 and 8.0.5.2 affects applications using the default HTML5 sanitizer on CRuby with load_defaults 7.1 or later. Nokogiri versions before 1.19.5 serialize < and > characters unescaped inside attribute values. This can cause the Action View text helpers highlight and simple_format to emit live HTML elements from what should be inert markup, potentially leading to cross-site scripting (XSS) when untrusted input is processed. The issue is fixed in the specified versions.
References
- ubuntu.com/security/CVE-2026-126079 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-126079 (opens in a new tab)
- github.com/rails/rails/security/advisories/GHSA-2p2f-4rq4-gjwc (opens in a new tab)
- github.com/rails/rails/commit/adc3a32d4abea77ed3aacf6f5fb71cfc005bef73 (opens in a new tab)
- github.com/rails/rails/commit/009ea68342d05d02087c04dae7faaa4e4c1def11 (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)