# CVE-2025-46812: Trix vulnerable to Cross-site Scripting on copy & paste

> CVE-2025-46812: Trix vulnerable to Cross-site Scripting on copy & paste. CVSS 2.0 (CVSS 4.0).

Canonical: https://rewindex.com/cve/CVE-2025-46812
Last updated: 2026-06-17T09:26:58Z

- Published: 2025-05-08 19:27 UTC · Updated: 2026-06-17 09:26 UTC · Assigner: GitHub\_M
- CVSS: 2.0 (CVSS 4.0) · Severity: Low
- EPSS: 0.72%, 53th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-79

## 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.

## Affected vendors and products

- basecamp: trix

## Tracked companies

- [Basecamp](https://rewindex.com/company/basecamp.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2025-46812)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2025-46812)
- [https://github.com/basecamp/trix/commit/75226089646841b0f774d8b152e5ec27d2d9e191](https://github.com/basecamp/trix/commit/75226089646841b0f774d8b152e5ec27d2d9e191)
- [https://github.com/basecamp/trix/security/advisories/GHSA-mcrw-746g-9q8h](https://github.com/basecamp/trix/security/advisories/GHSA-mcrw-746g-9q8h)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2025-46812 · Markdown: https://rewindex.com/cve/CVE-2025-46812.md · JSON: https://rewindex.com/api/v1/cves/CVE-2025-46812 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T04:04:43.955Z
