cve.bz

CVE-2023-23913 rails rails-ujs: Cross-site Scripting

6.3 mediumEPSS 0.6%Fix available

Medium (6.3) in rails rails-ujs. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in actionview 6.1.7.3, 7.0.4.3.

On this page
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.

Severity

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
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 52nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-01-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-23913 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-23913?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-23913?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-23913 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
rails-ujsfrom 6.1.7.3 before 6.1.7.3
rails-ujsfrom 7.0.4.3 before 7.0.4.3

Fixed in

ProductFixed in
rails-ujs5.1.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-xp5h-f8jf-rc8qRubyGemsactionview>=5.1.0 <6.1.7.36.1.7.3
GHSA-xp5h-f8jf-rc8qRubyGemsactionview>=7.0.0 <7.0.4.37.0.4.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11rails2:6.0.3.7+dfsg-2+deb11u2DSA-5389-1
Debian12, 13, 14rails2:6.1.7.3+dfsg-1DEBIAN-CVE-2023-23913
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 5 morerailsno fix listedUBUNTU-CVE-2023-23913
SUSELinux Enterprise High Availability Extension 15 SP1, Linux Enterprise High Availability Extension 15 SP2, Linux Enterprise High Availability Extension 15 SP3 and 2 morerubygem-actionview-5_15.1.4-150000.3.9.1SUSE-SU-2023:3813-1
openSUSELeap 15.4, Leap 15.5rubygem-actionview-5_15.1.4-150000.3.9.1SUSE-SU-2023:3813-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat 3scale API Management Platform 2railsWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-23913.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON