CVE-2023-23913
CVE-2023-23913 is an XSS in Rails rails-ujs (CVSS 6.3, Medium).
Public exploit available. Not confirmed exploited in the wild yet. Fixed versions are out.
Public exploit: 1 sourceFix2 products3 fixed builds listed below
e.g. OID 1.3.6.1.4.1.25623.1.0.833102
What to do
Find your product and version, then upgrade to the build on the right.
- Rails-ujsAffected: ≥ 6.1.7.3, < 6.1.7.3Upgrade to: 6.1.7.3Affected: ≥ 7.0.4.3, < 7.0.4.3Upgrade to: 7.0.4.3Fixed builds5.1.0Stated by: CVE record
- RubyGems actionviewAffected: ≥ 5.1.0, < 6.1.7.3Upgrade to: 6.1.7.3Stated by: GitHub advisory
Versions as the sources state them. Full version matrix after sign-in
What it is
From the CVE record
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.
In plain language
No plain-language summary for this CVE yet.
Exploitation
Where each signal puts this CVE on the scale from published to confirmed exploited.
- CISA KEV
Not in the catalog. CISA has not confirmed exploitation.
- Public exploits
1 source with a proof of concept or module.
Exploit links, PoCs and Metasploit modules after sign-in- EPSS
0.6% chance of exploitation activity in the next 30 days, which ranks it in the 52nd percentile of scored CVEs.
Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.
Lifecycle
The patch came 421 days before any public exploit.
- OpenVAS check added
- Public exploit / PoCsource: github-poc
- Patch availablepublished, weakness classified, att&ck mapped, record updated
Affected products
Technical detail
CVSS 3.1 vector
Open in the CVSS calculatorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
Scored 6.3 by NVD.
How it is reached
- Attack Vector NetworkExploitable remotely over the network without any special conditions
- Attack Complexity LowNo special conditions — the attack can be reliably reproduced
- Privileges Required NoneNo authentication required — anyone can exploit this
- User Interaction RequiredA user must click a link, open a file, or perform some action
Scope
- Scope UnchangedImpact is limited to the vulnerable component itself
Impact if exploited
- Confidentiality LowSome restricted information is disclosed, but limited in scope
- Integrity LowData modification is possible but limited in scope or consequence
- Availability LowReduced performance or intermittent disruption of service
Weaknesses
ATT&CK techniques
Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.
Sources
References in the record
- bugs.debian.org/cgi-bin/bugreport.cgi?bug=1033263
- discuss.rubyonrails.org/t/cve-2023-23913-dom-based-cross-site-scripting-in-rails-ujs-for-contenteditable-html-elements/82468
- github.com/rails/rails/commit/5037a13614d71727af8a175063bcf6ba1a74bdbd
And 7 more references. See all after sign-in
Questions about CVE-2023-23913
- Is CVE-2023-23913 being exploited?
- Not confirmed. Public exploit code exists (1 source), but CVE-2023-23913 is not in CISA KEV. EPSS puts the chance of exploitation in the next 30 days at 0.6%.
- Which versions are affected by CVE-2023-23913?
- Rails-ujs: ≥ 6.1.7.3, < 6.1.7.3; ≥ 7.0.4.3, < 7.0.4.3. Actionview: ≥ 5.1.0, < 6.1.7.3.
- How do I fix or mitigate CVE-2023-23913?
- Upgrade to a fixed build for your product branch: 6.1.7.3, 7.0.4.3, 5.1.0. The advisory is on security.netapp.com.
Last updated
Watch the software you run.
My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.
We'll flag the next CVE, public exploit or patch for Rails-ujs, not every advisory. This one: public exploit.
A free account adds
- The full version matrix and every affected product
- Exploit links, proofs of concept and Metasploit modules
- Email alerts for the products you watch
- The same data over REST API, MCP and CLI