{"id":"CVE-2026-73428","published":"2026-08-13T22:04:19Z","modified":"2026-08-14T18:06:36Z","title":"Trix: Stored XSS via HTMLParser attribute injection on paste","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 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00353,"percentile":0.21375,"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-53g2-mvcc-q9x3","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":7.5,"factors":[{"name":"EPSS percentile","points":4.28},{"name":"CVSS severity","points":3.22}]},"vendorSlug":"basecamp","affectedVersions":[{"vendor":"basecamp","product":"trix","versions":["< 2.1.18"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-14T17:39:35.455077Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"trix","vulnerableRanges":["<2.1.18"],"patched":["2.1.18"],"from":["GHSA-53g2-mvcc-q9x3"],"provenance":"source"},{"ecosystem":"RubyGems","package":"action_text-trix","vulnerableRanges":["<2.1.18"],"patched":["2.1.18"],"from":["GHSA-53g2-mvcc-q9x3"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-58520","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-basecamp-trix-cve-2026-73427","parents":[{"from":"CVE-2026-73426","to":"CVE-2026-73428","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":-5},{"kind":"version-step","provenance":"source","package":"npm:trix","fromFixed":"2.1.17","toFixed":"2.1.18","daysApart":-5},{"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"}}