{"id":"CVE-2026-73427","published":"2026-08-12T20:50:17Z","modified":"2026-08-13T13:51:28Z","title":"Trix: XSS via JSON deserialization bypass in drag-and-drop (Level0InputController)","vendor":"basecamp","product":"trix","tier":"tail","description":{"text":"Trix is a what-you-see-is-what-you-get rich text editor for everyday writing. Prior to 2.1.18, Trix is vulnerable to cross-site scripting when a crafted application/x-trix-document JSON payload is dropped into an editor using the fallback Level0InputController, such as an embedded WebView without Input Events Level 2 support. The StringPiece.fromJSON method trusts href attributes from the JSON payload without sanitization, allowing a draggable element containing a javascript: URI to bypass DOMPurify sanitization and inject executable JavaScript into the DOM. Exploitation requires the victim to drag and drop attacker-controlled content, and server-side HTML sanitization can neutralize the payload on save. This issue is fixed in version 2.1.18.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.1,"severity":"LOW","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00575,"percentile":0.41316,"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-53p3-c7vp-4mcc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/basecamp/trix/pull/1293","tags":["x_refsource_MISC"]},{"url":"https://github.com/basecamp/trix/commit/9c0a993d9fc2ffe9d56b013b030bc238f9c0557c","tags":["x_refsource_MISC"]},{"url":"https://github.com/basecamp/trix/releases/tag/v2.1.18","tags":["x_refsource_MISC"]}],"priority":{"score":9.7,"factors":[{"name":"EPSS percentile","points":8.26},{"name":"CVSS severity","points":1.47}]},"vendorSlug":"basecamp","affectedVersions":[{"vendor":"basecamp","product":"trix","versions":["< 2.1.18"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-13T13:51:16.963185Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"trix","vulnerableRanges":["<2.1.18"],"patched":["2.1.18"],"from":["GHSA-53p3-c7vp-4mcc"],"provenance":"source"},{"ecosystem":"RubyGems","package":"action_text-trix","vulnerableRanges":["<2.1.18"],"patched":["2.1.18"],"from":["GHSA-53p3-c7vp-4mcc"],"provenance":"source"}],"summary":{"text":"Trix, the basecamp rich text editor, contains a cross-site scripting flaw in its fallback Level0InputController drag-and-drop handling, where the StringPiece.fromJSON method trusts href attributes from a crafted application/x-trix-document payload without sanitization. An attacker can use a javascript: URI in a draggable element to bypass DOMPurify and run arbitrary JavaScript in the editor's DOM, which requires a victim to drag and drop attacker-controlled content into an editor running the fallback controller, such as an embedded WebView lacking Input Events Level 2 support.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:05:35Z"},"euvd":{"id":"EUVD-2026-57622","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-basecamp-trix-cve-2026-73427","parents":[{"from":"CVE-2026-73426","to":"CVE-2026-73427","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:action_text-trix","fromFixed":"2.1.17","toFixed":"2.1.18","daysApart":-6},{"kind":"version-step","provenance":"source","package":"npm:trix","fromFixed":"2.1.17","toFixed":"2.1.18","daysApart":-6},{"kind":"same-code","provenance":"machine","files":["action_text-trix/app/assets/javascripts/trix.js"],"commits":["https://github.com/basecamp/trix/commit/3229c29c771ded4d247ed79b2ccd2cd05c4e74b4","https://github.com/basecamp/trix/commit/53197ab5a142e6b0b76127cb790726b274eaf1bc","https://github.com/basecamp/trix/commit/9c0a993d9fc2ffe9d56b013b030bc238f9c0557c"],"basis":"rarely changed file"}]}],"packageHistory":[{"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},{"cve":"CVE-2026-73428","published":"2026-08-13","fixed":"2.1.18","kev":false}],"package":"RubyGems:action_text-trix"}}