Skip to content
Fencer Vulns
medium 6.3

CVE-2023-23913 json

rails-ujs vulnerable to DOM Based Cross-site Scripting contenteditable HTML Elements

published 2023-06-09 3 y ago modified 2026-06-17 4 mo ago also GHSA-xp5h-f8jf-rc8q , EUVD-2023-1918

cvss
6.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.6%
EPSS 0.6% chance of exploitation in 30 days, percentile 50%
public exploits
0
none known

Summary

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.

Patch / fix

  • rubygems actionview 6.1.7.3, 7.0.4.3
  • rails Debian 14, Debian 13, Debian 12 2:6.1.7.3+dfsg-1

debian advisories DEBIAN-CVE-2023-23913

  • rubygem-actionview-5_1 SLE High Availability Extension 15 SP5, SLE High Availability Extension 15 SP4, SLE High Availability Extension 15 SP3 +4 more 5.1.4-150000.3.9.1

suse advisories SUSE-SU-2023:3813-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2023-23913 updated cvss 7.5

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

  • Red Hat 3scale API Management Platform 2 rails
    affected: no fix planned “Will not fix”

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
21 mo ago

Exploit prediction

0.64% chance of exploitation in the next 30 days, higher than 50% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 6.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
CNA 3.1 6.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
GitHub 3.1 6.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L

Affected packages

ecosystem package affected fixed in
rubygems actionview
>=5.1.0, <6.1.7.3
>=7.0.0, <7.0.4.3
6.1.7.3
7.0.4.3

Affected products

  • Rails rails-ujs

Classification

Weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.