CVE-2024-34341
MEDIUM 5.4CVSS 3.1Trix Editor Arbitrary Code Execution Vulnerability
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.
- Published
- 7 May 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-79
- Also known as
- GHSA-qjqp-xr96-cj99
- Sources
- NVDJSONOSV GHSA-qjqp-xr96-cj99JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | trix | >= 2.0.0, < 2.1.1 | 2.1.1 |
| OSV | npm | trix | >= 0.9.0, < 1.3.2 | 1.3.2 |
| OSV | RubyGems | actiontext | >= 7.0.0.alpha1, < 7.0.8.3 | 7.0.8.3 |
| OSV | RubyGems | actiontext | >= 7.1.0.beta1, < 7.1.3.3 | 7.1.3.3 |
References
- https://github.com/basecamp/trix/commit/1a5c68a14d48421fc368e30026f4a7918028b7ad · WEB
- https://github.com/basecamp/trix/commit/841ff19b53f349915100bca8fcb488214ff93554 · WEB
- https://github.com/basecamp/trix/pull/1147 · WEB
- https://github.com/basecamp/trix/pull/1149 · WEB
- https://github.com/basecamp/trix/releases/tag/v2.1.1 · WEB
- https://github.com/basecamp/trix/security/advisories/GHSA-qjqp-xr96-cj99 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-34341 · ADVISORY
- https://github.com/rails/rails/commit/07e6c88cc4defe6f6b8d28e79eb13a518e15b14c · WEB
- https://github.com/rails/rails/commit/260cb392fc1ee91d0b749cff08d1c8d54b230bd3 · WEB
- https://github.com/rails/rails/commit/73fac32511eefdd45d8f00fecc2b8cc5408ea6d5 · WEB
- https://discuss.rubyonrails.org/t/xss-vulnerabilities-in-trix-editor/85803 · WEB
- https://github.com/basecamp/trix · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actiontext/CVE-2024-34341.yml · WEB
- https://rubyonrails.org/2024/5/17/Rails-Versions-7-0-8-2-and-7-1-3-3-have-been-released · WEB
- https://rubyonrails.org/2024/5/17/Rails-Versions-7-0-8-3-has-been-released · WEB
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 7 May 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 7 May 2024)