# CVE-2024-34341: The Trix Editor Contains an Arbitrary Code Execution Vulnerability

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.78%, higher than 57% of CVEs (2026-12-01)
- Published: 2024-05-07T15:13:03.137Z
- Modified: 2026-06-17T07:33:12.650Z
- Also known as: GHSA-qjqp-xr96-cj99
- Related: CVE-2024-43368
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- basecamp trix: < 2.1.1; before 2.1.1
- trix (npm): from 2.0.0 before 2.1.1; from 0.9.0 before 1.3.2
- actiontext (RubyGems): from 7.0.0.alpha1 before 7.0.8.3; from 7.1.0.beta1 before 7.1.3.3

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`

## References

- <https://github.com/basecamp/trix/security/advisories/GHSA-qjqp-xr96-cj99> (web)
- <https://github.com/basecamp/trix/pull/1147> (web)
- <https://github.com/basecamp/trix/pull/1149> (web)
- <https://github.com/basecamp/trix/commit/1a5c68a14d48421fc368e30026f4a7918028b7ad> (web)
- <https://github.com/basecamp/trix/commit/841ff19b53f349915100bca8fcb488214ff93554> (web)
- <https://github.com/basecamp/trix/releases/tag/v2.1.1> (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)

## Sources

- CVE List: [CVE-2024-34341](https://www.cve.org/CVERecord?id=CVE-2024-34341), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-qjqp-xr96-cj99](https://github.com/advisories/GHSA-qjqp-xr96-cj99), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2024-34341](https://nvd.nist.gov/vuln/detail/CVE-2024-34341), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-34341 · Whole record: https://cve.day/CVE-2024-34341.json · Rebuilt by cve.day 2026-11-25T22:58:40.044Z
