{"id":"CVE-2025-46812","aliases":["CVE-2025-46812","GHSA-mcrw-746g-9q8h"],"related":[],"kind":"vulnerability","state":"published","title":"Trix vulnerable to Cross-site Scripting on copy & paste","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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).","format":"markdown","source":"ghsa"},{"lang":"es","text":"Trix es un editor de texto enriquecido con una interfaz intuitiva para la escritura diaria. Las versiones anteriores a la 2.1.15 son vulnerables a ataques XSS al pegar código malicioso. Un atacante podría engañar a un usuario para que copie y pegue código malicioso que ejecutaría código JavaScript arbitrario en su sesión, lo que podría provocar acciones no autorizadas o la divulgación de información confidencial. Este problema se ha corregido en la versión 2.1.15.","source":"nvd"}],"published":"2025-05-08T14:48:23.000Z","modified":"2026-06-17T09:26:58.450Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":2,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":2,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 2.1.15","status":"affected"}],"vendor":"basecamp","product":"trix","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.1.15"}],"ecosystem":"npm","package":"trix","purl":"pkg:npm/trix","source":"ghsa"}],"references":[{"url":"https://github.com/basecamp/trix/security/advisories/GHSA-mcrw-746g-9q8h","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/basecamp/trix/commit/75226089646841b0f774d8b152e5ec27d2d9e191","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-46812","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/basecamp/trix","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-05-08T19:58:29.593Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-46812","url":"https://www.cve.org/CVERecord?id=CVE-2025-46812","licence":"CVE Terms of Use","modified":"2025-05-08T20:00:42.604Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mcrw-746g-9q8h","url":"https://github.com/advisories/GHSA-mcrw-746g-9q8h","licence":"CC-BY-4.0","modified":"2025-05-08T22:00:43.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-46812","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-46812","licence":"Public domain","modified":"2026-06-17T09:26:58.450Z"}],"updatedAt":"2026-11-25T22:58:57.822Z","epss":{"score":0.00743,"percentile":0.55923,"date":"2026-12-01T12:00:22.000Z"}}