CVE-2023-23913

rails: DOM Based Cross-site Scripting in rails-ujs for contenteditable HTML Elements

Published Jan 9, 2025 CVSS 3.1 · 6.3 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-5389-1 rails security update
Github GHSA Github GHSA GHSA-xp5h-f8jf-rc8q rails-ujs vulnerable to DOM Based Cross-site Scripting contenteditable HTML Elements
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L'}

Type Values Removed Values Added
Description A flaw was found in Rails. rails-ujs may allow an attacker to perform Cross-Site Scripting (XSS), which could lead to stolen information, phishing attacks, and other types of attacks. 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.
References

Subscriptions

No data.

Weaknesses

Sources

Status
PUBLISHED
Assigner
hackerone
Published
Updated
Jan 9, 2025, 5:09 PM
Reserved
Jan 19, 2023, 6:13 PM
Status
Deferred
Published
Jan 9, 2025, 1:15 AM
Modified
Jun 17, 2026, 5:38 AM
Severity
Moderate
Public date
Mar 20, 2023, 12:00 AM