Medium severity5.4OSV Advisory· Published May 7, 2024· Updated Jun 17, 2026
CVE-2024-34341
CVE-2024-34341
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
trixnpm | >= 2.0.0, < 2.1.1 | 2.1.1 |
trixnpm | >= 0.9.0, < 1.3.2 | 1.3.2 |
actiontextRubyGems | >= 7.0.0.alpha1, < 7.0.8.3 | 7.0.8.3 |
actiontextRubyGems | >= 7.1.0.beta1, < 7.1.3.3 | 7.1.3.3 |
Affected products
5- ghsa-coords4 versionspkg:gem/actiontextpkg:npm/trixpkg:rpm/opensuse/rubygem-actiontext-7.0&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/rubygem-rails-7.0&distro=openSUSE%20Tumbleweed
>= 7.0.0.alpha1, < 7.0.8.3+ 3 more
- (no CPE)range: >= 7.0.0.alpha1, < 7.0.8.3
- (no CPE)range: >= 2.0.0, < 2.1.1
- (no CPE)range: < 7.0.8.4-1.1
- (no CPE)range: < 7.0.8.4-1.1
Patches
Vulnerability mechanics
References
15- github.com/advisories/GHSA-qjqp-xr96-cj99ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-34341ghsaADVISORY
- discuss.rubyonrails.org/t/xss-vulnerabilities-in-trix-editor/85803ghsaWEB
- github.com/basecamp/trix/commit/1a5c68a14d48421fc368e30026f4a7918028b7adnvdWEB
- github.com/basecamp/trix/commit/841ff19b53f349915100bca8fcb488214ff93554nvdWEB
- github.com/basecamp/trix/pull/1147nvdWEB
- github.com/basecamp/trix/pull/1149nvdWEB
- github.com/basecamp/trix/releases/tag/v2.1.1nvdWEB
- github.com/basecamp/trix/security/advisories/GHSA-qjqp-xr96-cj99nvdWEB
- github.com/rails/rails/commit/07e6c88cc4defe6f6b8d28e79eb13a518e15b14cghsaWEB
- github.com/rails/rails/commit/260cb392fc1ee91d0b749cff08d1c8d54b230bd3ghsaWEB
- github.com/rails/rails/commit/73fac32511eefdd45d8f00fecc2b8cc5408ea6d5ghsaWEB
- github.com/rubysec/ruby-advisory-db/blob/master/gems/actiontext/CVE-2024-34341.ymlghsaWEB
- rubyonrails.org/2024/5/17/Rails-Versions-7-0-8-2-and-7-1-3-3-have-been-releasedghsaWEB
- rubyonrails.org/2024/5/17/Rails-Versions-7-0-8-3-has-been-releasedghsaWEB
News mentions
0No linked articles in our index yet.