Live threats

All CVEs / Rails

CVE-2023-23913rails-ujs

Medium 6.3 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for rails-ujs.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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

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.