What’s Vulnerable › Vulnerabilities

CVE-2023-23913: rails-ujs vulnerable to DOM Based Cross-site Scripting contenteditable HTML Elements

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 products

How to fix

Upgrade to a fixed version: Rubygems Actionview 6.1.7.3, 7.0.4.3; rails-ujs 6.1.7.3, 7.0.4.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2023-23913 or the next vulnerability affects your stack