GHSA-g9jg-w8vm-g96v
JSON

4.6medium

Trix has a stored XSS vulnerability through its attachment attribute

Severity
4.6medium CVSS:3.1 by GitHub
Published
Last changed

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.

Affected

Product or packageVersionsReported by
trix (npm)before 2.1.16GitHub Advisory Database
action_text-trix (RubyGems)before 2.1.16GitHub Advisory Database

Classification

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-g9jg-w8vm-g96v changed 2026-09-10CC-BY-4.0