# GHSA-g9jg-w8vm-g96v: Trix has a stored XSS vulnerability through its attachment attribute

- Severity: Medium 4.6 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-12-31T22:07:25.000Z
- Modified: 2026-09-10T03:50:31.999Z
- Weaknesses: CWE-79

## 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](https://hackerone.com/michaelcheers?type=user).

(As written by GitHub Advisory Database.)

## Affected

- trix (npm): before 2.1.16
- action_text-trix (RubyGems): before 2.1.16

## References

- <https://github.com/basecamp/trix/security/advisories/GHSA-g9jg-w8vm-g96v> (web)
- <https://github.com/basecamp/trix/commit/73c20cf03ab2b56c0ef9c9b1aaf63f2de44f4010> (web)
- <https://github.com/basecamp/trix> (package)
- <https://github.com/basecamp/trix/releases/tag/v2.1.16> (web)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/action_text-trix/GHSA-g9jg-w8vm-g96v.yml> (web)

## Sources

- GitHub Advisory Database: [GHSA-g9jg-w8vm-g96v](https://github.com/advisories/GHSA-g9jg-w8vm-g96v), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/GHSA-g9jg-w8vm-g96v · Whole record: https://cve.day/GHSA-g9jg-w8vm-g96v.json · Rebuilt by cve.day 2026-11-25T22:56:41.335Z
