CVE-2023-23913 Details
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.
A DOM-based cross-site scripting vulnerability has been identified in the rails-ujs library of Ruby on Rails. This issue affects versions 5.1.0 and higher, prior to 6.1.7.3 and 7.0.4.3. The vulnerability arises when a user pastes malicious HTML into a contenteditable element, targeting attributes such as data-method, data-remote, or data-disable-with. The exploitation leverages the Clipboard API to inject harmful scripts that could be executed in the context of the user's origin.
Users are advised to upgrade to Ruby on Rails versions 6.1.7.3 or 7.0.4.3. For those unable to upgrade immediately, a patch is available for the 6.1 series.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jan 9, 2025CISA-ADP
Assessed Jan 9, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1033263 | [email protected] | Issue TrackingTechnical DescriptionVendor |
| https://discuss.rubyonrails.org/t/cve-2023-23913-dom-based-cross-site-scripting-in-rails-ujs-for-contenteditable-html-elements/82468 | [email protected] | AdvisoryRemedy |
| https://github.com/rails/rails/commit/5037a13614d71727af8a175063bcf6ba1a74bdbd | [email protected] | Source CodeVendor |
| https://security.netapp.com/advisory/ntap-20240605-0007/ | [email protected] | AdvisoryVendor |
| https://www.debian.org/security/2023/dsa-5389 | [email protected] | AdvisoryBundleMailing ListRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| rails | >= 5.1.0, < 6.1.7.3 >= 5.1.0, < 7.0.4.3 |
CPE
Remediation
| |
| NetApp | >= 5.1.0, < 6.1.7.3 >= 5.1.0, < 7.0.4.3 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 9, 2025 | CVE Modified | CISA-ADP |
| Jan 9, 2025 | New CVE Received | [email protected] |
Volerion