Vulnerability · Published Jan 9, 2025 · Assigned by hackerone

CVE-2023-23913

Medium 6.3

In plain English

A medium-severity cross-site scripting in rails-ujs from Rails. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.3Medium
Exploit odds (30 days)0.6%top 49.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12rails2:6.1.7.3+dfsg-1DEBIAN-CVE-2023-23913
Debian:13rails2:6.1.7.3+dfsg-1DEBIAN-CVE-2023-23913
Debian:14rails2:6.1.7.3+dfsg-1DEBIAN-CVE-2023-23913
RubyGemsactionview6.1.7.3GHSA-xp5h-f8jf-rc8q
RubyGemsactionview7.0.4.3GHSA-xp5h-f8jf-rc8q
Ubuntu:24.04:LTSrailsno fix listedUBUNTU-CVE-2023-23913
Ubuntu:25.10railsno fix listedUBUNTU-CVE-2023-23913
Ubuntu:26.04:LTSrailsno fix listedUBUNTU-CVE-2023-23913
Ubuntu:26.10railsno fix listedUBUNTU-CVE-2023-23913

Affected products (as reported)

VendorProductVersions
Rails rails-ujs 6.1.7.3 – before 6.1.7.37.0.4.3 – before 7.0.4.3

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L

References