{"id":"CVE-2026-73427","state":"PUBLISHED","title":"Trix: XSS via JSON deserialization bypass in drag-and-drop (Level0InputController)","description":"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.","publishedAt":"2026-08-12T20:50:17.434Z","updatedAt":"2026-08-13T13:51:28.767Z","severity":{"score":2.1,"label":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["basecamp trix"],"affected":[{"vendor":"basecamp","product":"trix","versions":[{"version":"< 2.1.18","status":"affected"}]}],"references":["https://github.com/basecamp/trix/security/advisories/GHSA-53p3-c7vp-4mcc","https://github.com/basecamp/trix/pull/1293","https://github.com/basecamp/trix/commit/9c0a993d9fc2ffe9d56b013b030bc238f9c0557c","https://github.com/basecamp/trix/releases/tag/v2.1.18"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:12:58.252Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/73xxx/CVE-2026-73427.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-73427","state":"PUBLISHED","datePublished":"2026-08-12T20:50:17.434Z","dateUpdated":"2026-08-13T13:51:28.767Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-08-12T14:32:11.796Z"},"containers":{"cna":{"title":"Trix: XSS via JSON deserialization bypass in drag-and-drop (Level0InputController)","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"basecamp","product":"trix","versions":[{"version":"< 2.1.18","status":"affected"}]}],"references":[{"url":"https://github.com/basecamp/trix/security/advisories/GHSA-53p3-c7vp-4mcc","name":"https://github.com/basecamp/trix/security/advisories/GHSA-53p3-c7vp-4mcc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/basecamp/trix/pull/1293","name":"https://github.com/basecamp/trix/pull/1293","tags":["x_refsource_MISC"]},{"url":"https://github.com/basecamp/trix/commit/9c0a993d9fc2ffe9d56b013b030bc238f9c0557c","name":"https://github.com/basecamp/trix/commit/9c0a993d9fc2ffe9d56b013b030bc238f9c0557c","tags":["x_refsource_MISC"]},{"url":"https://github.com/basecamp/trix/releases/tag/v2.1.18","name":"https://github.com/basecamp/trix/releases/tag/v2.1.18","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"ACTIVE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":2.1,"baseSeverity":"LOW","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-08-12T20:50:17.434Z"},"source":{"advisory":"GHSA-53p3-c7vp-4mcc","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-13T13:51:16.963185Z","id":"CVE-2026-73427","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-13T13:51:28.767Z"}}]}}}