Headline
GHSA-g9jg-w8vm-g96v: Trix has a stored XSS vulnerability through its attachment attribute
Impact
The Trix editor, in versions prior to 2.1.16, is vulnerable to XSS attacks through attachment payloads.
An attacker could inject malicious code into a data-trix-attachment attribute that, when rendered as HTML and clicked on, 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.16 or later.
Resources
The XSS vulnerability was reported by HackerOne researcher michaelcheers.
- GitHub Advisory Database
- GitHub Reviewed
- GHSA-g9jg-w8vm-g96v
Trix has a stored XSS vulnerability through its attachment attribute
Moderate severity GitHub Reviewed Published Dec 30, 2025 in basecamp/trix • Updated Dec 31, 2025
Package
bundler action_text-trix (RubyGems)
Affected versions
< 2.1.16
Impact
The Trix editor, in versions prior to 2.1.16, is vulnerable to XSS attacks through attachment payloads.
An attacker could inject malicious code into a data-trix-attachment attribute that, when rendered as HTML and clicked on, 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.16 or later.
Resources
The XSS vulnerability was reported by HackerOne researcher michaelcheers.
References
- GHSA-g9jg-w8vm-g96v
- basecamp/trix@73c20cf
- https://github.com/basecamp/trix/releases/tag/v2.1.16
Published to the GitHub Advisory Database
Dec 31, 2025
Last updated
Dec 31, 2025