CVE-2024-53847
MEDIUM 5.1CVSS 4.0Trix editor subject to XSS vulnerabilities on copy & paste
The Trix rich text editor, prior to versions 2.1.9 and 1.3.3, is vulnerable to cross-site scripting (XSS) + mutation XSS attacks when pasting malicious code. An attacker could trick a user to copy and paste malicious code that would execute arbitrary JavaScript code within the context of the user's session, potentially leading to unauthorized actions being performed or sensitive information being disclosed. Users should upgrade to Trix editor version 2.1.9 or 1.3.3, which uses DOMPurify to sanitize the pasted content.
- Published
- 9 Dec 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-79
- Also known as
- GHSA-6vx4-v2jw-qwqh
- Sources
- NVDJSONOSV GHSA-6vx4-v2jw-qwqhJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 5.1 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | trix | >= 2.0.0, < 2.1.9 | 2.1.9 |
| OSV | npm | trix | >= 1.0.0, < 1.3.3 | 1.3.3 |
References
- https://github.com/basecamp/trix/commit/272c7e27e722608732a67108ad3fe7870e233ac8 · WEB
- https://github.com/basecamp/trix/security/advisories/GHSA-6vx4-v2jw-qwqh · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-53847 · ADVISORY
- https://github.com/basecamp/trix · PACKAGE
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 9 Dec 2024)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 9 Dec 2024)