Cross-site scripting in rails-ujs
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · Low
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Rails | rails-ujs | 6.1.7.3 to before 6.1.7.3; 7.0.4.3 to before 7.0.4.3 | 6.1.7.3, 7.0.4.3, 5.1.0 | Patch available | CNA |
| — | actionview (RubyGems) | 5.1.0 to before 6.1.7.3 | 6.1.7.3 | Patch available | GHSA-xp5h-f8jf-rc8q |
| — | actionview (RubyGems) | 7.0.0 to before 7.0.4.3 | 7.0.4.3 | Patch available | GHSA-xp5h-f8jf-rc8q |
- rails-ujs VendorRails Affected 6.1.7.3 to before 6.1.7.3; 7.0.4.3 to before 7.0.4.3 Fixed in 6.1.7.3, 7.0.4.3, 5.1.0 Patch available CNA
- actionview (RubyGems) Vendor— Affected 5.1.0 to before 6.1.7.3 Fixed in 6.1.7.3 Patch available GHSA-xp5h-f8jf-rc8q
- actionview (RubyGems) Vendor— Affected 7.0.0 to before 7.0.4.3 Fixed in 7.0.4.3 Patch available GHSA-xp5h-f8jf-rc8q
Remediation
- Fix · CNA rails-ujs (Rails) Fixed in 6.1.7.3, 7.0.4.3, 5.1.0
- Fix · GHSA-xp5h-f8jf-rc8q actionview (RubyGems) Fixed in 6.1.7.3 Advisory →
- Fix · GHSA-xp5h-f8jf-rc8q actionview (RubyGems) Fixed in 7.0.4.3 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat 3scale API Management Platform 2 | Affected | No fix planned: Will not fix |
Timeline
- 2026-10-02 Threatist record created from CVE-2023-23913
- 2026-10-03 Alias added: GHSA-xp5h-f8jf-rc8q
- 2026-10-24 EPSS moved to the 50th–90th percentile
References
Other 9
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1033263
- https://discuss.rubyonrails.org/t/cve-2023-23913-dom-based-cross-site-scripting-in-rails-ujs-for-contenteditable-html-elements/82468
- https://github.com/rails/rails/commit/5037a13614d71727af8a175063bcf6ba1a74bdbd
- https://security.netapp.com/advisory/ntap-20240605-0007/
- https://www.debian.org/security/2023/dsa-5389
- https://github.com/rails/rails/commit/73009ea59a811b28e8ec2a9c9bc24635aa891214
- https://github.com/rails/rails
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/CVE-2023-23913.yml
- https://security.netapp.com/advisory/ntap-20240605-0007
More Rails vulnerabilities
- TI-2014-00124 Directory traversal vulnerability in actionpack/lib/abstract_controller/base.rb in the… KEVCVSS 3.1HIGH 7.5
- TI-2019-03828 Path traversal in Rails https://github.com/rails/rails KEVCVSS 3.1HIGH 7.5
- TI-2016-00672 Directory traversal vulnerability in Action View in Ruby on Rails before 3.2.22.1, 4.0.x… KEVCVSS 3.1HIGH 7.5
- TI-2019-03830 Command injection in Rails https://github.com/rails/rails CVSS 3.1CRITICAL 9.8
- TI-2026-47043 Action Pack: Possible arbitrary file read and remote code execution in Active Storage variant processing CVSS 4.0CRITICAL 9.5
- TI-2025-18040 Command injection in Rails activestorage CVSS 4.0CRITICAL 9.2
Sources
- CVE-2023-23913 · CVE Program
- CVE-2023-23913 · NVD
- FIRST EPSS
- GHSA-xp5h-f8jf-rc8q · GitHub Advisory Database · CC BY 4.0
- CVE-2023-23913 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences