{"cve":"CVE-2024-34341","nvd":{"published":"2024-05-07T16:15:08.217","modified":"2026-06-17T07:33:12.650","status":"Deferred","description":"Trix is a rich text editor. The Trix editor, versions prior to 2.1.1, is vulnerable to arbitrary code execution when copying and pasting content from the web or other documents with markup into the editor. The vulnerability stems from improper sanitization of pasted content, allowing an attacker to embed malicious scripts which are executed within the context of the application. Users should upgrade to Trix editor version 2.1.1 or later, which incorporates proper sanitization of input from copied content.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4},"cwes":["CWE-79"],"references":["https://github.com/basecamp/trix/commit/1a5c68a14d48421fc368e30026f4a7918028b7ad","https://github.com/basecamp/trix/commit/841ff19b53f349915100bca8fcb488214ff93554","https://github.com/basecamp/trix/pull/1147","https://github.com/basecamp/trix/pull/1149","https://github.com/basecamp/trix/releases/tag/v2.1.1"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:49:23.840078609+00:00"},"epss":{"cve":"CVE-2024-34341","score":0.00784,"percentile":0.56067,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-qjqp-xr96-cj99","url":"https://osv.dev/vulnerability/GHSA-qjqp-xr96-cj99","summary":"Trix Editor Arbitrary Code Execution Vulnerability","modified":"2026-02-04T02:55:04.360037Z","packages":[{"ecosystem":"npm","name":"trix","purl":"pkg:npm/trix","ranges":[">=2.0.0 <2.1.1"],"fixed":["2.1.1"]},{"ecosystem":"npm","name":"trix","purl":"pkg:npm/trix","ranges":[">=0.9.0 <1.3.2"],"fixed":["1.3.2"]},{"ecosystem":"RubyGems","name":"actiontext","purl":"pkg:gem/actiontext","ranges":[">=7.0.0.alpha1 <7.0.8.3"],"fixed":["7.0.8.3"]},{"ecosystem":"RubyGems","name":"actiontext","purl":"pkg:gem/actiontext","ranges":[">=7.1.0.beta1 <7.1.3.3"],"fixed":["7.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."]}