4.6medium
Trix: Stored XSS vulnerability through serialized attributes
- Severity
- 4.6medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.24% (higher than 16% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-qmpg-8xg6-ph5q
Description
Trix is a what-you-see-is-what-you-get rich text editor for everyday writing. Prior to 2.1.17, Trix is vulnerable to cross-site scripting when a data-trix-serialized-attributes attribute bypasses the DOMPurify sanitizer. An attacker can craft HTML containing a data-trix-serialized-attributes attribute with a malicious payload that, when rendered, executes arbitrary JavaScript in the user's session and may perform unauthorized actions or disclose sensitive information. This issue is fixed in version 2.1.17.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| basecamp trix | < 2.1.17 | CVE List |
| action_text-trix (RubyGems) | before 2.1.17 | GitHub Advisory Database |
| trix (npm) | before 2.1.17 | GitHub Advisory Database |
All scores
| GitHub_M | 4.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
| GitHub | 4.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Trix is a what-you-see-is-what-you-get rich text editor for everyday writing. Prior to 2.1.17, Trix is vulnerable to cross-site scripting when a data-trix-serialized-attributes attribute bypasses the DOMPurify sanitizer. An attacker can craft HTML containing a data-trix-serialized-attributes attribute with a malicious payload that, when rendered, executes arbitrary JavaScript in the user's session and may perform unauthorized actions or disclose sensitive information. This issue is fixed in version 2.1.17.
GitHub Advisory Database
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.
NVD (es)
Trix es un editor de texto enriquecido de lo que ves es lo que obtienes para la escritura diaria. Antes de 2.1.17, Trix es vulnerable a cross-site scripting cuando un atributo data-trix-serialized-attributes omite el saneador DOMPurify. Un atacante puede elaborar HTML que contiene un atributo data-trix-serialized-attributes con una carga útil maliciosa que, al renderizarse, ejecuta JavaScript arbitrario en la sesión del usuario y puede realizar acciones no autorizadas o divulgar información sensible. Este problema se corrige en la versión 2.1.17.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-73426 changed 2026-08-18 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qmpg-8xg6-ph5q changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-73426 changed 2026-10-22 | Public domain |