CVE-2024-34341 The Trix Editor Contains an Arbitrary Code Execution Vulnerability
MediumCVSS 5.4
EPSS 0.78%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| basecamp trix | < 2.1.1; = < 2.1.1 | 2.1.1 | Fixed |
| npm trix(npm) | >= 0.9.0, < 1.3.2; >= 2.0.0, < 2.1.1 | 1.3.2, 2.1.1 | Fixed |
| rubygems actiontext(RubyGems) | = 7.0.0; = 7.0.0.alpha1; = 7.0.0.alpha2; = 7.0.0.rc1 +34 more | 7.0.8.3, 7.1.3.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm trix(npm) | >= 2.0.0, < 2.1.1 | 2.1.1 |
| npm trix(npm) | >= 0.9.0, < 1.3.2 | 1.3.2 |
| rubygems actiontext(RubyGems) | >= 7.0.0.alpha1, < 7.0.8.3 | 7.0.8.3 |
| rubygems actiontext(RubyGems) | = 7.0.0 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.0.alpha1 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.0.alpha2 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.0.rc1 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.0.rc2 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.0.rc3 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.1 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.2 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.2.1 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.2.2 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.2.3 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.2.4 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.3 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.3.1 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.4 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.4.1 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.4.2 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.4.3 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.5 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.5.1 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.6 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.7 | No fix listed |
Show 17 more
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems actiontext(RubyGems) | = 7.0.7.1 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.7.2 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.8 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.8.1 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.0.8.2 | No fix listed |
| rubygems actiontext(RubyGems) | >= 7.1.0.beta1, < 7.1.3.3 | 7.1.3.3 |
| rubygems actiontext(RubyGems) | = 7.1.0 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.1.0.beta1 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.1.0.rc1 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.1.0.rc2 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.1.1 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.1.2 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.1.3 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.1.3.1 | No fix listed |
| rubygems actiontext(RubyGems) | = 7.1.3.2 | No fix listed |
| basecamp trix | = < 2.1.1 | No fix listed |
| basecamp trix | < 2.1.1 | 2.1.1 |
References
- https://github.com/basecamp/trix/security/advisories/GHSA-qjqp-xr96-cj99 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/basecamp/trix/pull/1147 patch
- https://github.com/basecamp/trix/pull/1149 patch
- https://github.com/basecamp/trix/commit/1a5c68a14d48421fc368e30026f4a7918028b7ad patch
- https://github.com/basecamp/trix/commit/841ff19b53f349915100bca8fcb488214ff93554 patch
- github.com patch
- github.com patch
- github.com patch
- discuss.rubyonrails.org
- github.com product
- https://github.com/basecamp/trix/releases/tag/v2.1.1
- github.com exploit
- rubyonrails.org
- rubyonrails.org
- github.com