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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| basecamp | trix | < 2.1.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | rubygem-rails-7.0 +1 | 7.0.8.4-1.1 | openSUSE-SU-2025:15124-1, openSUSE-SU-2025:15111-1, openSUSE-SU-2024:14074-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | trix | >= 2.0.0, < 2.1.1 | 2.1.1 | GHSA-qjqp-xr96-cj99 |
| npm | trix | >= 0.9.0, < 1.3.2 | 1.3.2 | GHSA-qjqp-xr96-cj99 |
| RubyGems | actiontext | >= 7.0.0.alpha1, < 7.0.8.3 | 7.0.8.3 | GHSA-qjqp-xr96-cj99 |
| RubyGems | actiontext | >= 7.1.0.beta1, < 7.1.3.3 | 7.1.3.3 | GHSA-qjqp-xr96-cj99 |
Advisories 4
- openSUSE-SU-2025:15124-1 ruby3.4-rubygem-rails-7.0-7.0.8.6-1.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:14068-1 ruby3.3-rubygem-actiontext-7.0-7.0.8.4-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:14074-1 ruby3.3-rubygem-rails-7.0-7.0.8.4-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2025:15111-1 ruby3.4-rubygem-actiontext-7.0-7.0.8.6-1.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
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