Vulnerability · Published Jan 9, 2025 · Assigned by hackerone
CVE-2023-23913
Medium 6.3
In plain English
A medium-severity cross-site scripting in rails-ujs from Rails. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | rails | 2:6.1.7.3+dfsg-1 | DEBIAN-CVE-2023-23913 |
| Debian:13 | rails | 2:6.1.7.3+dfsg-1 | DEBIAN-CVE-2023-23913 |
| Debian:14 | rails | 2:6.1.7.3+dfsg-1 | DEBIAN-CVE-2023-23913 |
| RubyGems | actionview | 6.1.7.3 | GHSA-xp5h-f8jf-rc8q |
| RubyGems | actionview | 7.0.4.3 | GHSA-xp5h-f8jf-rc8q |
| Ubuntu:24.04:LTS | rails | no fix listed | UBUNTU-CVE-2023-23913 |
| Ubuntu:25.10 | rails | no fix listed | UBUNTU-CVE-2023-23913 |
| Ubuntu:26.04:LTS | rails | no fix listed | UBUNTU-CVE-2023-23913 |
| Ubuntu:26.10 | rails | no fix listed | UBUNTU-CVE-2023-23913 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
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