VDB
Sign up
MEDIUM4.6

GHSA-g9jg-w8vm-g96v

Trix has a stored XSS vulnerability through its attachment attribute

Quick fix

GHSA-g9jg-w8vm-g96v — trix: upgrade to the fixed version with the command below.

npm install trix@2.1.16

Details

### 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).

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/trix
Introduced in: 0Fixed in: 2.1.16
Fixnpm install trix@2.1.16
RubyGems/action_text-trix
Introduced in: 0Fixed in: 2.1.16
Fixbundle update action_text-trix

References