{"cve":"CVE-2024-53847","nvd":{"published":"2024-12-09T19:15:14.387","modified":"2026-06-17T08:09:24.687","status":"Deferred","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.","cvss_v4":{"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","score":5.1},"cvss_v3":null,"cwes":["CWE-79"],"references":["https://github.com/basecamp/trix/commit/272c7e27e722608732a67108ad3fe7870e233ac8","https://github.com/basecamp/trix/security/advisories/GHSA-6vx4-v2jw-qwqh"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:57:36.180738747+00:00"},"epss":{"cve":"CVE-2024-53847","score":0.00463,"percentile":0.40131,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-6vx4-v2jw-qwqh","url":"https://osv.dev/vulnerability/GHSA-6vx4-v2jw-qwqh","summary":"Trix editor subject to XSS vulnerabilities on copy & paste","modified":"2024-12-09T21:53:54Z","packages":[{"ecosystem":"npm","name":"trix","purl":"pkg:npm/trix","ranges":[">=2.0.0 <2.1.9"],"fixed":["2.1.9"]},{"ecosystem":"npm","name":"trix","purl":"pkg:npm/trix","ranges":[">=1.0.0 <1.3.3"],"fixed":["1.3.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}