The Trix Editor Contains an Arbitrary Code Execution Vulnerability
Published May 7, 2024
5.4
MEDIUMCVSS 3.1
EPSS 0.78%
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.
Affected products
-
- Version < 2.1.1StatusaffectedConstraints-
- Version
No data.
-
- Version 0StatusaffectedConstraints<2.1.1
- Version
No Red Hat product state for this CVE.
trix
npm
Introduced 2.0.0 Fixed 2.1.1trix
npm
Introduced 0.9.0 Fixed 1.3.2actiontext
RubyGems
Introduced 7.0.0.alpha1 Fixed 7.0.8.3actiontext
RubyGems
Introduced 7.1.0.beta1 Fixed 7.1.3.3
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | trix | 2.0.0 | 2.1.1 |
| npm | trix | 0.9.0 | 1.3.2 |
| RubyGems | actiontext | 7.0.0.alpha1 | 7.0.8.3 |
| RubyGems | actiontext | 7.1.0.beta1 | 7.1.3.3 |
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
NoneAutomatable
NoTechnical Impact
PartialDecision
n/aAssessed May 7, 2024 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2024–2026- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (5 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 0.78% (0.00784) | 54.42th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.78% (0.00784) | 51.07th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.56% (0.00563) | 66.42th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.04% (0.00044) | 12.15th | v3 (v2023.03.01) |
| May 8, 2024 | 0.04% (0.00044) | 9.62th | v3 (v2023.03.01) |
References (15)
- https://discuss.rubyonrails.org/t/xss-vulnerabilities-in-trix-editor/85803
- https://github.com/advisories/GHSA-qjqp-xr96-cj99 Advisory
- https://github.com/basecamp/trix/commit/1a5c68a14d48421fc368e30026f4a7918028b7ad x_refsource_MISC
- https://github.com/basecamp/trix/commit/841ff19b53f349915100bca8fcb488214ff93554 x_refsource_MISC
- https://github.com/basecamp/trix/pull/1147 x_refsource_MISC
- https://github.com/basecamp/trix/pull/1149 x_refsource_MISC
- https://github.com/basecamp/trix/releases/tag/v2.1.1 x_refsource_MISC
- https://github.com/basecamp/trix/security/advisories/GHSA-qjqp-xr96-cj99 x_refsource_CONFIRM
- https://github.com/rails/rails/commit/07e6c88cc4defe6f6b8d28e79eb13a518e15b14c
- https://github.com/rails/rails/commit/260cb392fc1ee91d0b749cff08d1c8d54b230bd3
- https://github.com/rails/rails/commit/73fac32511eefdd45d8f00fecc2b8cc5408ea6d5
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actiontext/CVE-2024-34341.yml
- https://nvd.nist.gov/vuln/detail/CVE-2024-34341
- https://rubyonrails.org/2024/5/17/Rails-Versions-7-0-8-2-and-7-1-3-3-have-been-released
- https://rubyonrails.org/2024/5/17/Rails-Versions-7-0-8-3-has-been-released
Change history (0)
No recorded changes yet.