Description
There is a potential DOM based cross-site scripting issue in rails-ujs which leverages the Clipboard API to target HTML elements that are assigned the contenteditable attribute. This has the potential to occur when pasting malicious HTML content from the clipboard that includes a data-method, data-remote or data-disable-with attribute.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Rails | rails-ujs | 6.1.7.3 – < 6.1.7.3, 7.0.4.3 – < 7.0.4.3 | 6.1.7.3 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rails | 2:6.1.7.3+dfsg-1 | — |
| Debian 13 | rails | 2:6.1.7.3+dfsg-1 | — |
| Debian 12 | rails | 2:6.1.7.3+dfsg-1 | — |
| Debian 11 | rails | 2:6.0.3.7+dfsg-2+deb11u2 | DSA-5389-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | rails | No fix yet | — |
| Ubuntu 26.04 LTS | rails | No fix yet | — |
| Ubuntu 25.10 | rails | No fix yet | — |
| Ubuntu 24.04 LTS | rails | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | rails | No fix yet | — |
| Ubuntu Pro 20.04 LTS | rails | No fix yet | — |
| Ubuntu Pro 18.04 LTS | rails | No fix yet | — |
| Ubuntu Pro 16.04 LTS | rails | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP5 | rubygem-actionview-5_1 | 5.1.4-150000.3.9.1 | SUSE-SU-2023:3813-1 |
| SLES 15 SP4 | rubygem-actionview-5_1 | 5.1.4-150000.3.9.1 | SUSE-SU-2023:3813-1 |
| SLES 15 SP3 | rubygem-actionview-5_1 | 5.1.4-150000.3.9.1 | SUSE-SU-2023:3813-1 |
| SLES 15 SP2 | rubygem-actionview-5_1 | 5.1.4-150000.3.9.1 | SUSE-SU-2023:3813-1 |
| SLES 15 SP1 | rubygem-actionview-5_1 | 5.1.4-150000.3.9.1 | SUSE-SU-2023:3813-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.5 | rubygem-actionview-5_1 | 5.1.4-150000.3.9.1 | SUSE-SU-2023:3813-1 |
| openSUSE Leap 15.4 | rubygem-actionview-5_1 | 5.1.4-150000.3.9.1 | SUSE-SU-2023:3813-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | actionview | >= 5.1.0, < 6.1.7.3 | 6.1.7.3 | GHSA-xp5h-f8jf-rc8q |
| RubyGems | actionview | >= 7.0.0, < 7.0.4.3 | 7.0.4.3 | GHSA-xp5h-f8jf-rc8q |
Advisories 4
- DSA-5389-1 rails - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2023:3813-1 Security update for rubygem-actionview-5_1 SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2023-0632 Ruby on Rails: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 16, 2025
- WID-SEC-2023-2101 genua genucenter: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 20, 2023
References
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1033263
- https://discuss.rubyonrails.org/t/cve-2023-23913-dom-based-cross-site-scripting-in-rails-ujs-for-contenteditable-html-elements/82468
- https://github.com/rails/rails/commit/5037a13614d71727af8a175063bcf6ba1a74bdbd
- https://security.netapp.com/advisory/ntap-20240605-0007/
- https://www.debian.org/security/2023/dsa-5389