CVE-2023-23913
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
SUSE Affected 1 release
| Version | Status | Fixed in |
|---|---|---|
| โ | Affected | โ |
Debian Fixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 2:6.1.7.3+dfsg-1 |
| sid | Fixed | 2:6.1.7.3+dfsg-1 |
| forky | Fixed | 2:6.1.7.3+dfsg-1 |
| bullseye | Fixed | 2:6.0.3.7+dfsg-2+deb11u2 |
| bookworm | Fixed | 2:6.1.7.3+dfsg-1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| RubyGems | actionview | !< 5.1.0||<~> 6.1.7.3 | ~> 6.1.7.3 |
| RubyGems | actionview | >=5.1.0,<6.1.7.3 | 6.1.7.3 |
| RubyGems | actionview | >=7.0.0,<7.0.4.3 | 7.0.4.3 |
References
- https://discuss.rubyonrails.org/t/cve-2023-23913-dom-based-cross-site-scripting-in-rails-ujs-for-contenteditable-html-elements/82468
- https://www.suse.com/security/cve/CVE-2023-23913.html
- https://nvd.nist.gov/vuln/detail/CVE-2023-23913
- https://github.com/rails/rails/commit/5037a13614d71727af8a175063bcf6ba1a74bdbd
- https://github.com/rails/rails/commit/73009ea59a811b28e8ec2a9c9bc24635aa891214
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1033263
- 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
- https://www.debian.org/security/2023/dsa-5389
- https://security-tracker.debian.org/tracker/CVE-2023-23913
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.