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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-12-09 · Modified: 2024-12-10
- Aliases: GHSA-6vx4-v2jw-qwqh
- Record: https://cvemate.com/vulnerability/CVE-2024-53847 · JSON: https://cvemate.com/vulnerability/CVE-2024-53847/json

## Description

```text
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.
```

## Signals

- CVSS: 5.1 medium (v4.0, CVE.org) 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
- EPSS: 0.463%, percentile 41.813%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- basecamp trix: ≥ 2.0.0, \< 2.1.9 \| ≥ 1.0.0, \< 1.3.3
- Npm trix (Npm): ≥ 2.0.0, \< 2.1.9 \| ≥ 1.0.0, \< 1.3.3

## References

- <https://github.com/basecamp/trix/security/advisories/GHSA-6vx4-v2jw-qwqh>
- <https://github.com/basecamp/trix/commit/272c7e27e722608732a67108ad3fe7870e233ac8>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-53847>
- <https://github.com/basecamp/trix>

---

Data as of 2026-12-05T11:27:55.251Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
