# CVE-2026-73427: Trix: XSS via JSON deserialization bypass in drag-and-drop (Level0InputController)

> CVE-2026-73427: Trix: XSS via JSON deserialization bypass in drag-and-drop (Level0InputController). CVSS 2.1 (CVSS 4.0).

Canonical: https://rewindex.com/cve/CVE-2026-73427
Last updated: 2026-10-24T15:10:00Z

- Published: 2026-08-12 20:50 UTC · Updated: 2026-10-24 15:10 UTC · Assigner: GitHub\_M
- CVSS: 2.1 (CVSS 4.0) · Severity: Low
- EPSS: 0.58%, 47th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-79

## 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.

## Affected vendors and products

- basecamp: trix

## Tracked companies

- [Basecamp](https://rewindex.com/company/basecamp.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2026-73427)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2026-73427)
- [https://github.com/basecamp/trix/commit/9c0a993d9fc2ffe9d56b013b030bc238f9c0557c](https://github.com/basecamp/trix/commit/9c0a993d9fc2ffe9d56b013b030bc238f9c0557c)
- [https://github.com/basecamp/trix/pull/1293](https://github.com/basecamp/trix/pull/1293)
- [https://github.com/basecamp/trix/releases/tag/v2.1.18](https://github.com/basecamp/trix/releases/tag/v2.1.18)
- [https://github.com/basecamp/trix/security/advisories/GHSA-53p3-c7vp-4mcc](https://github.com/basecamp/trix/security/advisories/GHSA-53p3-c7vp-4mcc)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2026-73427 · Markdown: https://rewindex.com/cve/CVE-2026-73427.md · JSON: https://rewindex.com/api/v1/cves/CVE-2026-73427 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T03:12:47.396Z
