{"id":"CVE-2025-21610","published":"2025-01-03T16:29:54Z","modified":"2025-01-03T16:56:23Z","title":"Trix allows Cross-site Scripting via `javascript:` url in a link","vendor":"basecamp","product":"trix","tier":"tail","description":{"text":"Trix is a what-you-see-is-what-you-get rich text editor for everyday writing. Versions prior to 2.1.12 are vulnerable to cross-site scripting when pasting malicious code in the link field. An attacker could trick the user to copy&paste a malicious `javascript:` URL as a link 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.12 or later to receive a patch. In addition to upgrading, affected users can disallow browsers that don't support a Content Security Policy (CSP) as a workaround for this and other cross-site scripting vulnerabilities. Set CSP policies such as script-src 'self' to ensure that only scripts hosted on the same origin are executed, and explicitly prohibit inline scripts using script-src-elem.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00727,"percentile":0.50052,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/basecamp/trix/security/advisories/GHSA-j386-3444-qgwg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/basecamp/trix/commit/180c8d337f18e1569cea6ef29b4d03ffff5b5faa","tags":["x_refsource_MISC"]},{"url":"https://github.com/basecamp/trix/commit/c4f0d6f80654603932af6685694f694e96593b93","tags":["x_refsource_MISC"]},{"url":"https://gist.github.com/th4s1s/3921fd9c3e324ad9a3e0d846166e3eb8","tags":["x_refsource_MISC"]}],"priority":{"score":13.7,"factors":[{"name":"EPSS percentile","points":10.01},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"basecamp","affectedVersions":[{"vendor":"basecamp","product":"trix","versions":["< 2.1.12"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-01-03T16:55:29.669326Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"trix","vulnerableRanges":["<2.1.12"],"patched":["2.1.12"],"from":["GHSA-j386-3444-qgwg"],"provenance":"source"}],"summary":{"text":"The Trix rich text editor, maintained by Basecamp, has a cross-site scripting flaw in its link handling: its link field accepts a javascript: URL that is pasted in without being neutralised. An attacker who can persuade a user to copy and paste a malicious javascript: URL into that link field can run arbitrary JavaScript in the user's session, which is possible over the network without authentication but requires the user to take that action, and could lead to unauthorised actions or disclosure of sensitive information.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:59:48Z"},"euvd":{"id":"EUVD-2025-0029","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-34341","published":"2024-05-07","fixed":"2.1.1","kev":false},{"cve":"CVE-2024-43368","published":"2024-08-14","fixed":"2.1.4","kev":false},{"cve":"CVE-2024-53847","published":"2024-12-09","fixed":"2.1.9","kev":false,"link":{"from":"CVE-2024-53847","to":"CVE-2025-21610","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:trix","fromFixed":"2.1.9","toFixed":"2.1.12","daysApart":25}]}},{"cve":"CVE-2025-21610","published":"2025-01-03","fixed":"2.1.12","kev":false},{"cve":"CVE-2025-46812","published":"2025-05-08","fixed":"2.1.15","kev":false,"link":{"from":"CVE-2025-21610","to":"CVE-2025-46812","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:trix","fromFixed":"2.1.12","toFixed":"2.1.15","daysApart":125}]}},{"cve":"CVE-2026-73426","published":"2026-08-18","fixed":"2.1.17","kev":false},{"cve":"CVE-2026-73427","published":"2026-08-12","fixed":"2.1.18","kev":false}],"package":"npm:trix"}}