Trix has a Stored XSS vulnerability through serialized attributes
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
action_text-trixRubyGems | < 2.1.17 | 2.1.17 |
trixnpm | < 2.1.17 | 2.1.17 |
Affected products
1- Range: <2.1.17
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-qmpg-8xg6-ph5qghsaADVISORY
- github.com/basecamp/trix/commit/53197ab5a142e6b0b76127cb790726b274eaf1bcghsaWEB
- github.com/basecamp/trix/pull/1282ghsaWEB
- github.com/basecamp/trix/releases/tag/v2.1.17ghsaWEB
- github.com/basecamp/trix/security/advisories/GHSA-qmpg-8xg6-ph5qghsaWEB
- github.com/rubysec/ruby-advisory-db/blob/master/gems/action_text-trix/GHSA-qmpg-8xg6-ph5q.ymlghsaWEB
News mentions
0No linked articles in our index yet.