VDB
KO
MEDIUM 4.6

GHSA-qmpg-8xg6-ph5q

Trix has a Stored XSS vulnerability through serialized attributes

Quick fix

GHSA-qmpg-8xg6-ph5q — action_text-trix: upgrade to the fixed version with the command below.

bundle update action_text-trix

Details

### Impact The Trix editor, in versions prior to 2.1.17, is vulnerable to XSS attacks when a `data-trix-serialized-attributes` attribute bypasses the DOMPurify sanitizer.

An attacker could craft HTML containing a `data-trix-serialized-attributes` attribute with a malicious payload that, when the content is rendered, 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.17 or later.

### References The XSS vulnerability was responsibly reported by Hackerone researcher [newbiefromcoma](https://hackerone.com/newbiefromcoma).

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems / action_text-trix
Introduced in: 0 Fixed in: 2.1.17
Fix bundle update action_text-trix
npm / trix
Introduced in: 0 Fixed in: 2.1.17
Fix npm install trix@2.1.17

References