CVE-2023-23913
MEDIUM 6.3CVSS 3.1rails-ujs vulnerable to DOM Based Cross-site Scripting contenteditable HTML Elements
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.
- Published
- 9 Jan 2025
- Last modified
- 17 Jun 2026
- Assigned by
- support@hackerone.com
- NVD status
- Deferred
- Weakness
- CWE-79
- Also known as
- GHSA-xp5h-f8jf-rc8q
- Sources
- NVDJSONOSV GHSA-xp5h-f8jf-rc8qJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | RubyGems | actionview | >= 5.1.0, < 6.1.7.3 | 6.1.7.3 |
| OSV | RubyGems | actionview | >= 7.0.0, < 7.0.4.3 | 7.0.4.3 |
References
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1033263 · WEB
- https://discuss.rubyonrails.org/t/cve-2023-23913-dom-based-cross-site-scripting-in-rails-ujs-for-contenteditable-html-elements/82468 · WEB
- https://github.com/rails/rails/commit/5037a13614d71727af8a175063bcf6ba1a74bdbd · WEB
- https://security.netapp.com/advisory/ntap-20240605-0007/ · WEB
- https://www.debian.org/security/2023/dsa-5389 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-23913 · ADVISORY
- https://github.com/rails/rails/commit/73009ea59a811b28e8ec2a9c9bc24635aa891214 · WEB
- https://github.com/rails/rails · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/CVE-2023-23913.yml · WEB
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 9 Jan 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 9 Jun 2023)