CVE-2026-73426: Trix has a Stored XSS vulnerability through serialized attributes
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…
Published Mar 12, 2026 · Updated Aug 12, 2026
Affected packages
action_text-trix
- Ecosystem
- RubyGems
- Affected
- < 2.1.17
- Fixed in
- 2.1.17
- Check
bundle info action_text-trix
trix
- Ecosystem
- npm
- Affected
- < 2.1.17
- Fixed in
- 2.1.17
- Check
npm ls trix
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- 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/rubysec/ruby-advisory-db/blob/master/gems/action_text-trix/GHSA-qmpg-8xg6-ph5q.yml
- https://github.com/advisories/GHSA-qmpg-8xg6-ph5q
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More RubyGems vulnerabilities
All RubyGems entriesCVE-2026-73428
Trix: Stored XSS via HTMLParser attribute injection on paste
medium4.6Jul 24, 2026CVE-2026-73427
Trix is vulnerable to XSS through JSON deserialization bypass in drag-and-drop (Level0InputController)
low2.1Mar 29, 2026GHSA-g9jg-w8vm-g96v
Trix has a stored XSS vulnerability through its attachment attribute
medium4.6Dec 31, 2025CVE-2025-46812
Trix vulnerable to Cross-site Scripting on copy & paste
low2.0May 8, 2025CVE-2025-21610
Trix allows Cross-site Scripting via `javascript:` url in a link
medium5.3Jan 3, 2025CVE-2024-53847
Trix editor subject to XSS vulnerabilities on copy & paste
medium5.1Dec 9, 2024
