GHSA-g9jg-w8vm-g96v Trix has a stored XSS vulnerability through its attachment attribute
MediumCVSS 4.6
- Published
- Updated
- Exploit status
- No public exploit known
Description
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm trix(npm) | < 2.1.16 | 2.1.16 | Fixed |
| rubygems action_text-trix(RubyGems) | < 2.1.16; = 0.0.1; = 2.1.15 | 2.1.16 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm trix(npm) | < 2.1.16 | 2.1.16 |
| rubygems action_text-trix(RubyGems) | < 2.1.16 | 2.1.16 |
| rubygems action_text-trix(RubyGems) | = 0.0.1 | No fix listed |
| rubygems action_text-trix(RubyGems) | = 2.1.15 | No fix listed |
References
- github.com vendor-advisory
- github.com patch
- github.com product
- github.com
- github.com
- github.com