# CVE-2026-73428: Trix: Stored XSS via HTMLParser attribute injection on paste

- Severity: Medium 4.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-07-24T16:18:01.000Z
- Modified: 2026-09-18T20:09:01.757Z
- Also known as: GHSA-53g2-mvcc-q9x3
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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 stored cross-site scripting when crafted HTML is pasted into the editor. HTMLParser processes a mock attachment in a `<span>` with an empty `data-trix-attachment="{}"` value, causing data-trix-attributes to be applied to a plain string piece. StringPiece.fromJSON accepts an unvalidated href, allowing a javascript: URI to enter the document model and serialized HTML and execute when another user renders and clicks the content. Applications that apply server-side HTML sanitization can neutralize the payload on save. This issue is fixed in version 2.1.18.

(As written by CVE List.)

## Affected

- basecamp trix: < 2.1.18
- trix (npm): before 2.1.18
- action_text-trix (RubyGems): before 2.1.18

## Every score

- GitHub_M: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`

## References

- <https://github.com/basecamp/trix/security/advisories/GHSA-53g2-mvcc-q9x3> (web)
- <https://github.com/basecamp/trix/pull/1293>
- <https://github.com/basecamp/trix/commit/9c0a993d9fc2ffe9d56b013b030bc238f9c0557c> (web)
- <https://github.com/basecamp/trix/releases/tag/v2.1.18> (web)
- <https://github.com/basecamp/trix> (package)

## Sources

- CVE List: [CVE-2026-73428](https://www.cve.org/CVERecord?id=CVE-2026-73428), CVE Terms of Use, modified 2026-08-14
- GitHub Advisory Database: [GHSA-53g2-mvcc-q9x3](https://github.com/advisories/GHSA-53g2-mvcc-q9x3), CC-BY-4.0, modified 2026-08-12
- NVD: [CVE-2026-73428](https://nvd.nist.gov/vuln/detail/CVE-2026-73428), Public domain, modified 2026-09-18

---

Page: https://cve.day/CVE-2026-73428 · Whole record: https://cve.day/CVE-2026-73428.json · Rebuilt by cve.day 2026-11-25T22:59:32.880Z
