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
- github.com/rails/rails@5037a13 commit
- github.com/rails/rails@73009ea commit
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 railsaffected: 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
-
github.com
/rails/rails/commit/5037a13614d71727af8a175063bcf6ba1a74bdbd
web
-
github.com
/rails/rails/commit/73009ea59a811b28e8ec2a9c9bc24635aa891214
web
-
bugs.debian.org
/cgi-bin/bugreport.cgi?bug=1033263
web
-
discuss.rubyonrails.org
/t/cve-2023-23913-dom-based-cross-site-scripting-in-rails-ujs-for-contenteditable-html-elements/82468
web
- security.netapp.com /advisory/ntap-20240605-0007/
-
debian.org
/security/2023/dsa-5389
web
-
nvd.nist.gov
/vuln/detail/CVE-2023-23913
advisory
-
github.com
/rails/rails
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/actionview/CVE-2023-23913.yml
web
-
security.netapp.com
/advisory/ntap-20240605-0007
web
Sources
- CVE List CVE-2023-23913
- GitHub Advisory GHSA-xp5h-f8jf-rc8q
- NVD CVE-2023-23913
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.