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

- Severity: Medium 5.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2024-12-09T18:49:37.339Z
- Modified: 2026-06-17T08:09:24.687Z
- Also known as: GHSA-6vx4-v2jw-qwqh
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- basecamp trix: >= 2.0.0, < 2.1.9; >= 1.0.0, < 1.3.3
- trix (npm): from 2.0.0 before 2.1.9; from 1.0.0 before 1.3.3

## Every score

- GitHub_M: CVSS:4.0 5.1 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

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

## Sources

- CVE List: [CVE-2024-53847](https://www.cve.org/CVERecord?id=CVE-2024-53847), CVE Terms of Use, modified 2024-12-10
- GitHub Advisory Database: [GHSA-6vx4-v2jw-qwqh](https://github.com/advisories/GHSA-6vx4-v2jw-qwqh), CC-BY-4.0, modified 2024-12-09
- NVD: [CVE-2024-53847](https://nvd.nist.gov/vuln/detail/CVE-2024-53847), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-53847 · Whole record: https://cve.day/CVE-2024-53847.json · Rebuilt by cve.day 2026-11-25T22:58:49.852Z
