# CVE-2024-53847: Trix vulnerable to Cross-site Scripting on copy & paste

> CVE-2024-53847: Trix vulnerable to Cross-site Scripting on copy & paste. CVSS 5.1 (CVSS 4.0).

Canonical: https://rewindex.com/cve/CVE-2024-53847
Last updated: 2026-06-17T08:09:24Z

- Published: 2024-12-09 18:49 UTC · Updated: 2026-06-17 08:09 UTC · Assigner: GitHub\_M
- CVSS: 5.1 (CVSS 4.0) · Severity: Medium
- EPSS: 0.46%, 40th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-79

## Description

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.

## Affected vendors and products

- basecamp: trix

## Tracked companies

- [Basecamp](https://rewindex.com/company/basecamp.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2024-53847)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2024-53847)
- [https://github.com/basecamp/trix/commit/272c7e27e722608732a67108ad3fe7870e233ac8](https://github.com/basecamp/trix/commit/272c7e27e722608732a67108ad3fe7870e233ac8)
- [https://github.com/basecamp/trix/security/advisories/GHSA-6vx4-v2jw-qwqh](https://github.com/basecamp/trix/security/advisories/GHSA-6vx4-v2jw-qwqh)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2024-53847 · Markdown: https://rewindex.com/cve/CVE-2024-53847.md · JSON: https://rewindex.com/api/v1/cves/CVE-2024-53847 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T02:11:23.685Z
