{"schemaVersion":3,"id":"CVE-2026-73428","aliases":["GHSA-53g2-mvcc-q9x3"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-08-13T22:04:19.121Z","modified":"2026-08-14T18:06:36.864Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.6,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.6,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":4.6,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","exploitability":5.4,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Rubygems","score":4.6,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","exploitability":5.4,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.6,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00353,"percentile":0.27546,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.15,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00203},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00353,"percentile":0.27546}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00353,"percentile":0.27546}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"basecamp","product":"trix","name":"trix","label":"trix","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.1.18","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.1.18","eol":null,"hubHref":"/vendor/basecamp/trix"},{"vendor":"RubyGems","product":"action_text-trix","name":"action_text-trix","label":"action_text-trix","ecosystem":"RubyGems","cpePart":null,"purl":"pkg:gem/action_text-trix","purlType":"gem","versions":[{"text":"< 2.1.18","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.1.18","eol":null,"hubHref":null},{"vendor":"Npm","product":"trix","name":"trix","label":"trix","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/trix","purlType":"npm","versions":[{"text":"< 2.1.18","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.1.18","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/basecamp/trix/security/advisories/GHSA-53g2-mvcc-q9x3","label":"github.com/basecamp/trix/security/advisories/GHSA-53g2-mvcc-q9x3","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://github.com/basecamp/trix/pull/1293","label":"github.com/basecamp/trix/pull/1293","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/basecamp/trix/commit/9c0a993d9fc2ffe9d56b013b030bc238f9c0557c","label":"github.com/basecamp/trix/commit/9c0a993d9fc2ffe9d56b013b030bc238f9c0557c","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/basecamp/trix/releases/tag/v2.1.18","label":"github.com/basecamp/trix/releases/tag/v2.1.18","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/basecamp/trix","label":"github.com/basecamp/trix","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-08-13T22:04:19.121Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-08-14T18:06:36.864Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":18,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T13:37:31.841Z","stale":false,"partial":false}}