CVE-2023-23913
MEDIUM6.3EPSS 0.21%rails - security update
Published: 6/9/2023Modified: 4/28/2026
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 (3)
- Debian/railsfrom 0, < 2:6.0.3.7+dfsg-2+deb11u2
- Debian/railsfrom 0, < 2:6.0.3.7+dfsg-2+deb11u2
- RubyGems/actionview>= 5.1.0, < 6.1.7.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L |
References (10)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2023-23913
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2023-23913
- PATCHhttps://github.com/rails/rails
- WEBhttps://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1033263
- WEBhttps://discuss.rubyonrails.org/t/cve-2023-23913-dom-based-cross-site-scripting-in-rails-ujs-for-contenteditable-html-elements/82468
- WEBhttps://github.com/rails/rails/commit/5037a13614d71727af8a175063bcf6ba1a74bdbd
- WEBhttps://github.com/rails/rails/commit/73009ea59a811b28e8ec2a9c9bc24635aa891214
- WEBhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/CVE-2023-23913.yml
- WEBhttps://security.netapp.com/advisory/ntap-20240605-0007
- WEBhttps://www.debian.org/security/2023/dsa-5389