Skip to content
OpenAdvisories
Medium · 5.1 CVE-2024-53847 EUVD-2024-3438GHSA-6vx4-v2jw-qwqh

Trix vulnerable to Cross-site Scripting on copy & paste

Published Dec 9, 2024 · Updated Dec 10, 2024 · 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.

Affected products

VendorProductAffectedFixed
basecamp trix >= 2.0.0, < 2.1.9, >= 1.0.0, < 1.3.3 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm trix >= 2.0.0, < 2.1.9 2.1.9 GHSA-6vx4-v2jw-qwqh
npm trix >= 1.0.0, < 1.3.3 1.3.3 GHSA-6vx4-v2jw-qwqh

Advisories 1

References