Monitor vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
4.6
Trix Editor Allows Malicious Code to Run in User Session
GHSA-qmpg-8xg6-ph5q
Summary
The Trix Editor is vulnerable to a security flaw that lets attackers run malicious code in your users' sessions. This could lead to unauthorized actions or sensitive information being leaked. Upgrade to the latest version of the Trix Editor (2.1.17 or later) to fix this issue.
What to do
- Update action_text-trix to version 2.1.17.
- Update trix to version 2.1.17.
Affected software
| Vendor | Product | Affected versions | Fix available |
|---|---|---|---|
| – | action_text-trix | <= 2.1.17 | 2.1.17 |
| – | trix | <= 2.1.17 | 2.1.17 |
Original title
Trix has a Stored XSS vulnerability through serialized attributes
Original description
### Impact
The Trix editor, in versions prior to 2.1.17, is vulnerable to XSS attacks when a `data-trix-serialized-attributes` attribute bypasses the DOMPurify sanitizer.
An attacker could craft HTML containing a `data-trix-serialized-attributes` attribute with a malicious payload that, when the content is rendered, could execute arbitrary JavaScript code within the context of the user's session, potentially leading to unauthorized actions being performed or sensitive information being disclosed.
### Patches
Update Recommendation: Users should upgrade to Trix editor version 2.1.17 or later.
### References
The XSS vulnerability was responsibly reported by Hackerone researcher [newbiefromcoma](https://hackerone.com/newbiefromcoma).
The Trix editor, in versions prior to 2.1.17, is vulnerable to XSS attacks when a `data-trix-serialized-attributes` attribute bypasses the DOMPurify sanitizer.
An attacker could craft HTML containing a `data-trix-serialized-attributes` attribute with a malicious payload that, when the content is rendered, could execute arbitrary JavaScript code within the context of the user's session, potentially leading to unauthorized actions being performed or sensitive information being disclosed.
### Patches
Update Recommendation: Users should upgrade to Trix editor version 2.1.17 or later.
### References
The XSS vulnerability was responsibly reported by Hackerone researcher [newbiefromcoma](https://hackerone.com/newbiefromcoma).
ghsa CVSS3.1
4.6
Vulnerability type
CWE-79
Cross-site Scripting (XSS)
- https://github.com/basecamp/trix/security/advisories/GHSA-qmpg-8xg6-ph5q
- https://github.com/basecamp/trix/pull/1282
- https://github.com/basecamp/trix/commit/53197ab5a142e6b0b76127cb790726b274eaf1bc
- https://github.com/basecamp/trix/releases/tag/v2.1.17
- https://github.com/advisories/GHSA-qmpg-8xg6-ph5q
Published: 12 Mar 2026 · Updated: 13 Mar 2026 · First seen: 12 Mar 2026