Skip to content

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

MediumCVSS 5.1 EPSS 0.46%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
npm trix(npm) >= 1.0.0, < 1.3.3; >= 2.0.0, < 2.1.9 1.3.3, 2.1.9 Fixed
basecamp trix = >= 1.0.0, < 1.3.3; = >= 2.0.0, < 2.1.9 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
npm trix(npm) >= 2.0.0, < 2.1.9 2.1.9
npm trix(npm) >= 1.0.0, < 1.3.3 1.3.3
basecamp trix = >= 2.0.0, < 2.1.9 No fix listed
basecamp trix = >= 1.0.0, < 1.3.3 No fix listed

References