CVE-2023-23913: Rails Rails-Ujs
Medium severity, CVSS 6.3. EPSS: 0.9% probability of exploitation activity in the next 30 days.
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.
What to do
The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.
- Rails Rails-Ujs, from 6, before 6.1.7.3: fixed in 6.1.7.3
- Rails Rails-Ujs, from 7, before 7.0.4.3: fixed in 7.0.4.3
Affected products
- Rails Rails-Ujs: from 6, before 6.1.7.3 (fixed in 6.1.7.3); from 7, before 7.0.4.3 (fixed in 7.0.4.3)
Affected packages
- actionview (RubyGems)
Published 2025-01-09. Last modified 2026-06-17.