GHSA-g9jg-w8vm-g96v json
Trix has a stored XSS vulnerability through its attachment attribute
published 10mo ago modified 2mo ago
- cvss
- 4.6
- version 3.1, GitHub
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
Summary
### 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](https://hackerone.com/michaelcheers?type=user).
Patch / fix
- npm trix 2.1.16
- rubygems action_text-trix 2.1.16
Is GHSA-g9jg-w8vm-g96v in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 4.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | trix | <2.1.16 |
2.1.16 |
| rubygems | action_text-trix | <2.1.16 |
2.1.16 |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/basecamp/trix/commit/73c20cf03ab2b56c0ef9c9b1aaf63f2de44f4010
web
-
github.com
/basecamp/trix/security/advisories/GHSA-g9jg-w8vm-g96v
web
-
github.com
/basecamp/trix
package
-
github.com
/basecamp/trix/releases/tag/v2.1.16
web
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/action_text-trix/GHSA-g9jg-w8vm-g96v.yml
web
Sources
- GitHub Advisory GHSA-g9jg-w8vm-g96v
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.