CVE-2023-23913rails-ujs
Medium 6.3 No auth needed
Follow: this CVE · Rails · rails-ujs We alert you by email or Slack (account required).
- Priority
- 53
- CVSS 3.1
- 6.3
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 56
- Auth required
- No
- Published
- Jan 9, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
What happens
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.
What to do
- Apply the vendor's security update for rails-ujs.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | actionview |
≥ 5.1.0 < 6.1.7.3 |
6.1.7.3 |
gem "actionview", ">= 6.1.7.3" |
| RubyGems | actionview |
≥ 7.0.0 < 7.0.4.3 |
7.0.4.3 |
gem "actionview", ">= 7.0.4.3" |
Per OSV / GitHub Advisories (GHSA-xp5h-f8jf-rc8q). Check the version in your lockfile before upgrading.
Affected products
- Rails · rails-ujs
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.