Skip to main content
VulnerabilityPublished

CVE-2026-126070: rails · Cross-site Scripting

Affects railsSource CVE Database V5

0
Compare

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:02 UTC

CVSS 3.1 base score
6.1Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.16.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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
railsrailsAffected
  • >=8.1 <8.1.4.1
Fixed in
  • 8.1.4.1
railsrailsAffected
  • <8.0.5.2
Fixed in
  • 8.0.5.2

AI-suggested

Upgrade Rails to version 8.1.4.1 or later, or 8.0.5.2 or later, where this vulnerability is fixed. No other mitigation is indicated or required as the fix addresses the root cause in the strip_tags method. Applications should avoid rendering untrusted input inside HTML attributes without proper escaping.

Description

A Cross-site Scripting (XSS) vulnerability exists in the Rails Action View framework's strip_tags helper prior to versions 8.1.4.1 and 8.0.5.2. The issue arises because strip_tags returns sanitized output marked as html_safe, but the sanitizer only encodes &, <, and >, leaving quotes unencoded. This allows untrusted input rendered inside quoted HTML attributes to break out and inject malicious attributes, potentially leading to XSS. The vulnerability affects rendering inside HTML attribute values but not element content. Fixed in Rails versions 8.1.4.1 and 8.0.5.2.

References

Community reviews

Loading reviews…