# Trix Editor Arbitrary Code Execution Vulnerability

Advisory record · `GHSA-qjqp-xr96-cj99`

- **Identifiers:** `GHSA-qjqp-xr96-cj99` · `CVE-2024-34341`
- **State:** Confirmed
- **Severity:** CVSS 5.4 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-79](https://cwe.mitre.org/data/definitions/79.html)
- **Tags:** [Cross-site scripting (XSS)](https://agentprime.io/advisories/tag/xss.md)
- **Published:** 7 May 2024
- **Updated:** 4 Feb 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 7 May 2024, 16:49 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `trix` (npm): affected `>=2.0.0, <2.1.1 || >=0.9.0, <1.3.2`; fixed in `2.1.1`, `1.3.2`
- `actiontext` (RubyGems): affected `>=7.0.0.alpha1, <7.0.8.3 || >=7.1.0.beta1, <7.1.3.3`; fixed in `7.0.8.3`, `7.1.3.3`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 5.4 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0078, the 56th percentile, on 6 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 7 May 2024. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-qjqp-xr96-cj99](https://github.com/advisories/GHSA-qjqp-xr96-cj99)
- [OSV: GHSA-qjqp-xr96-cj99](https://osv.dev/vulnerability/GHSA-qjqp-xr96-cj99)
- <https://github.com/basecamp/trix/security/advisories/GHSA-qjqp-xr96-cj99>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-34341>
- <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/rails/rails/commit/07e6c88cc4defe6f6b8d28e79eb13a518e15b14c>
- <https://github.com/rails/rails/commit/260cb392fc1ee91d0b749cff08d1c8d54b230bd3>
- <https://github.com/rails/rails/commit/73fac32511eefdd45d8f00fecc2b8cc5408ea6d5>
- <https://discuss.rubyonrails.org/t/xss-vulnerabilities-in-trix-editor/85803>
- <https://github.com/basecamp/trix>
- <https://github.com/basecamp/trix/releases/tag/v2.1.1>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-qjqp-xr96-cj99>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-qjqp-xr96-cj99/>. Everything for agents: <https://agentprime.io/llms.txt>.
