# CVE-2023-23913: rails-ujs vulnerable to DOM Based Cross-site Scripting contenteditable HTML Elements

- Severity: Medium 6.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 51% of CVEs (2026-12-02)
- Published: 2023-06-09T22:41:16.000Z
- Modified: 2026-06-17T05:38:15.710Z
- Also known as: GHSA-xp5h-f8jf-rc8q
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: hackerone

## 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.

(As written by CVE List.)

## Affected

- Rails rails-ujs: from 6.1.7.3 before 6.1.7.3; from 7.0.4.3 before 7.0.4.3 (not affected: from 5.1.0 before 5.1.0)
- actionview (RubyGems): from 5.1.0 before 6.1.7.3; from 7.0.0 before 7.0.4.3

## Every score

- CISA-ADP: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`

## References

- <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1033263> (web)
- <https://discuss.rubyonrails.org/t/cve-2023-23913-dom-based-cross-site-scripting-in-rails-ujs-for-contenteditable-html-elements/82468> (web)
- <https://github.com/rails/rails/commit/5037a13614d71727af8a175063bcf6ba1a74bdbd> (web)
- <https://security.netapp.com/advisory/ntap-20240605-0007/>
- <https://www.debian.org/security/2023/dsa-5389> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-23913> (advisory)
- <https://github.com/rails/rails/commit/73009ea59a811b28e8ec2a9c9bc24635aa891214> (web)
- <https://github.com/rails/rails> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/CVE-2023-23913.yml> (web)
- <https://security.netapp.com/advisory/ntap-20240605-0007> (web)

## Sources

- CVE List: [CVE-2023-23913](https://www.cve.org/CVERecord?id=CVE-2023-23913), CVE Terms of Use, modified 2025-01-09
- GitHub Advisory Database: [GHSA-xp5h-f8jf-rc8q](https://github.com/advisories/GHSA-xp5h-f8jf-rc8q), CC-BY-4.0, modified 2025-01-09
- NVD: [CVE-2023-23913](https://nvd.nist.gov/vuln/detail/CVE-2023-23913), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-23913 · Whole record: https://cve.day/CVE-2023-23913.json · Rebuilt by cve.day 2026-11-25T22:58:34.491Z
