{"id":"CVE-2025-46812","aliases":["EUVD-2025-14005","GHSA-mcrw-746g-9q8h"],"status":"published","title":"Trix vulnerable to Cross-site Scripting on copy \u0026 paste","description":"Trix is a what-you-see-is-what-you-get rich text editor for everyday writing. Versions prior to 2.1.15 are vulnerable to XSS attacks when pasting malicious code. An attacker could trick a user to copy and paste malicious code that would execute arbitrary JavaScript code within the context of the user's session, potentially leading to unauthorized actions being performed or sensitive information being disclosed. This issue has been patched in version 2.1.15.","severity":{"version":"4.0","score":2,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P","level":"low","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00728,"percentile":0.54644,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2025-05-08T14:48:23Z","modified":"2026-11-11T02:48:25Z","fixes":[{"ecosystem":"npm","package":"trix","fixed_in":["2.1.15"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"trix","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.15"}]}]},{"source":"osv","ecosystem":"npm","package":"trix","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.1.15"}]}]}],"products":[{"vendor":"basecamp","product":"trix"}],"references":[{"url":"https://github.com/basecamp/trix/security/advisories/GHSA-mcrw-746g-9q8h","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/basecamp/trix/commit/75226089646841b0f774d8b152e5ec27d2d9e191","tags":["x_refsource_MISC","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-46812","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-mcrw-746g-9q8h"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46812.json","tags":["advisory"]},{"url":"https://github.com/basecamp/trix","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2025-46812","title":"Trix vulnerable to Cross-site Scripting on copy \u0026 paste","description":"Trix is a what-you-see-is-what-you-get rich text editor for everyday writing. Versions prior to 2.1.15 are vulnerable to XSS attacks when pasting malicious code. An attacker could trick a user to copy and paste malicious code that would execute arbitrary JavaScript code within the context of the user's session, potentially leading to unauthorized actions being performed or sensitive information being disclosed. This issue has been patched in version 2.1.15.","status":"published","published":"2025-05-08T19:27:22.573Z","modified":"2025-05-08T20:00:42.604Z","cvss":[{"version":"4.0","score":2,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P","level":"low","assessor":"cna"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:32:36.385228Z"}],"euvd":[{"id":"EUVD-2025-14005","description":"Trix is a what-you-see-is-what-you-get rich text editor for everyday writing. Versions prior to 2.1.15 are vulnerable to XSS attacks when pasting malicious code. An attacker could trick a user to copy and paste malicious code that would execute arbitrary JavaScript code within the context of the user's session, potentially leading to unauthorized actions being performed or sensitive information being disclosed. This issue has been patched in version 2.1.15.","status":"published","published":"2025-05-08T19:27:22Z","modified":"2025-05-08T20:00:42Z","cvss":[{"version":"4.0","score":2,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P","level":"low"}],"updated_at":"2026-11-02T20:32:51.238738Z"}],"ghsa":[{"id":"GHSA-mcrw-746g-9q8h","title":"Trix vulnerable to Cross-site Scripting on copy \u0026 paste","description":"### Impact\nThe Trix editor, in versions prior to 2.1.15, is vulnerable to XSS attacks when pasting malicious code.\n\nAn attacker could trick a user to copy and paste malicious code that would execute arbitrary JavaScript code within the context of the user's session, potentially leading to unauthorized actions being performed or sensitive information being disclosed.\n\n### Patches\nUpdate Recommendation: Users should upgrade to Trix editor version 2.1.15 or later.\n\n### References\nThe XSS vulnerability was reported by HackerOne researcher [hiumee](https://hackerone.com/hiumee?type=user).","status":"published","published":"2025-05-08T14:48:23Z","modified":"2025-05-08T22:00:45Z","cvss":[{"version":"4.0","score":2,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P","level":"low"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:38:43.172412Z"}],"nvd":[{"id":"CVE-2025-46812","description":"Trix is a what-you-see-is-what-you-get rich text editor for everyday writing. Versions prior to 2.1.15 are vulnerable to XSS attacks when pasting malicious code. An attacker could trick a user to copy and paste malicious code that would execute arbitrary JavaScript code within the context of the user's session, potentially leading to unauthorized actions being performed or sensitive information being disclosed. This issue has been patched in version 2.1.15.","status":"published","published":"2025-05-08T20:15:30.95Z","modified":"2026-06-17T09:26:58.45Z","cvss":[{"version":"4.0","score":2,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"low","assessor":"secondary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:11:06.085152Z"}],"osv":[{"id":"CVE-2025-46812","title":"Trix vulnerable to Cross-site Scripting on copy \u0026 paste","description":"Trix is a what-you-see-is-what-you-get rich text editor for everyday writing. Versions prior to 2.1.15 are vulnerable to XSS attacks when pasting malicious code. An attacker could trick a user to copy and paste malicious code that would execute arbitrary JavaScript code within the context of the user's session, potentially leading to unauthorized actions being performed or sensitive information being disclosed. This issue has been patched in version 2.1.15.","status":"published","published":"2025-05-08T19:27:22.573Z","modified":"2026-11-11T10:47:21.392096433Z","cvss":[{"version":"4.0","score":2,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P","level":"low"}],"cwes":["CWE-79"],"updated_at":"2026-11-11T03:22:10.237529Z"},{"id":"GHSA-mcrw-746g-9q8h","title":"Trix vulnerable to Cross-site Scripting on copy \u0026 paste","description":"### Impact\nThe Trix editor, in versions prior to 2.1.15, is vulnerable to XSS attacks when pasting malicious code.\n\nAn attacker could trick a user to copy and paste malicious code that would execute arbitrary JavaScript code within the context of the user's session, potentially leading to unauthorized actions being performed or sensitive information being disclosed.\n\n### Patches\nUpdate Recommendation: Users should upgrade to Trix editor version 2.1.15 or later.\n\n### References\nThe XSS vulnerability was reported by HackerOne researcher [hiumee](https://hackerone.com/hiumee?type=user).","status":"published","published":"2025-05-08T14:48:23Z","modified":"2025-05-08T22:00:43Z","cvss":[{"version":"4.0","score":2,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P","level":"low"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:51.811331Z"}]}}
