CVE-2024-34341 — Vulnerability in actiontext — CVE Details
Trix Editor Arbitrary Code Execution Vulnerability
Summary
Advisory Timeline
- First published May 7, 2024 (888 days ago).
- Last revised February 4, 2026 — 637 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install actiontext -v 7.0.8.3
npm install trix@1.3.2
npm install trix@2.1.1
gem install actiontext -v 7.1.3.3
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (4)
Affects 2 ecosystems: npm (1), rubygems (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| actiontext | rubygems | 7.0.0, 7.0.0.alpha1, 7.0.0.alpha2, 7.0.0.rc1 (+23 more) | 7.0.8.3 |
| trix | npm | All versions | 1.3.2 |
| trix | npm | All versions | 2.1.1 |
| actiontext | rubygems | 7.1.0, 7.1.0.beta1, 7.1.0.rc1, 7.1.0.rc2 (+5 more) | 7.1.3.3 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-79Cross-site Scripting (XSS)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.4 score means for each attack dimension.
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-cj99WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-34341ADVISORY
- https://github.com/basecamp/trix/pull/1147WEB
- https://github.com/basecamp/trix/pull/1149WEB
- https://github.com/basecamp/trix/commit/1a5c68a14d48421fc368e30026f4a7918028b7adWEB
- https://github.com/basecamp/trix/commit/841ff19b53f349915100bca8fcb488214ff93554WEB
- https://github.com/rails/rails/commit/07e6c88cc4defe6f6b8d28e79eb13a518e15b14cWEB
- https://github.com/rails/rails/commit/260cb392fc1ee91d0b749cff08d1c8d54b230bd3WEB
- https://github.com/rails/rails/commit/73fac32511eefdd45d8f00fecc2b8cc5408ea6d5WEB
- https://discuss.rubyonrails.org/t/xss-vulnerabilities-in-trix-editor/85803WEB
- https://github.com/basecamp/trixPACKAGE
- https://github.com/basecamp/trix/releases/tag/v2.1.1WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actiontext/CVE-2024-34341.ymlWEB
- https://rubyonrails.org/2024/5/17/Rails-Versions-7-0-8-2-and-7-1-3-3-have-been-releasedWEB
- https://rubyonrails.org/2024/5/17/Rails-Versions-7-0-8-3-has-been-releasedWEB
Frequently Asked Questions
- What is CVE-2024-34341?
- Trix Editor Arbitrary Code Execution Vulnerability This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.4/10).
- How do I check if my project is affected by CVE-2024-34341?
- CVE-2024-34341 affects actiontext and trix. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-34341 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions or has limited impact. Remediate within weeks.
Also Known As
Related CVEs
- CVE-2026-107715MEDIUM
Mechanize sends credential headers to another host after an HTTP redirect
- CVE-2026-73428MEDIUM
Trix: Stored XSS via HTMLParser attribute injection on paste
- CVE-2026-107399MEDIUM
Mechanize sends credential headers to another origin after a meta refresh
- CVE-2024-32464MEDIUM
ActionText ContentAttachment can Contain Unsanitized HTML
- CVE-2026-73426MEDIUM
Trix has a Stored XSS vulnerability through serialized attributes
- CVE-2024-47888MEDIUM
Possible ReDoS vulnerability in plain_text_for_blockquote_node in Action Text
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies