GHSA-qmpg-8xg6-ph5qMediumCVSS 4.6

Trix has a Stored XSS vulnerability through serialized attributes

Published
March 12, 2026
Last Modified
August 12, 2026

🔗 CVE IDs covered (1)

📋 Description

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.

🎯 Affected products2

  • rubygems/action_text-trix:< 2.1.17
  • npm/trix:< 2.1.17

🔗 References (6)