CVE-2024-34341: The Trix Editor Contains an Arbitrary Code Execution Vulnerability
Vulnerability summary
CVE-2024-34341 is a medium (CVSS 5.4) vulnerability in basecamp trix. EPSS estimates a 0.78% chance of exploitation in the next 30 days, higher than 56.1% of scored vulnerabilities.
Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 3 · Related 4Timeline
- 07-05-2024PublishedVulnerability first disclosed.
- 02-08-2024Last modifiedVulnerability information updated.
Description
Trix is a rich text editor. The Trix editor, versions prior to 2.1.1, is vulnerable to arbitrary code execution when copying and pasting content from the web or other documents with markup into the editor. The vulnerability stems from improper sanitization of pasted content, allowing an attacker to embed malicious scripts which are executed within the context of the application. Users should upgrade to Trix editor version 2.1.1 or later, which incorporates proper sanitization of input from copied content.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · NpmEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- OSV · RubygemsEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- NVDNIST5.4MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
EPSS trend
Probability
0.78%
Chance of exploitation in the next 30 days
Percentile
56%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.78% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Basecamp1 product
- trix< 2.1.1
Npm1 product
- trix≥ 2.0.0, < 2.1.1 | ≥ 0.9.0, < 1.3.2
Opensuse1 product
- rubygem-actiontext-7.0&distro=openSUSE Tumbleweed< 7.0.8.4-1.1
RubyGems1 product
- actiontext≥ 7.0.0.alpha1, < 7.0.8.3 | ≥ 7.1.0.beta1, < 7.1.3.3
4 vendors · 4 products
References
16 linksShow all 16 references
- github.com/basecamp/trixPACKAGE