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

- Severity: Low 2.0 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.74%, higher than 55% of CVEs (2026-12-01)
- Published: 2025-05-08T14:48:23.000Z
- Modified: 2026-06-17T09:26:58.450Z
- Also known as: GHSA-mcrw-746g-9q8h
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- basecamp trix: < 2.1.15
- trix (npm): before 2.1.15

## Every score

- GitHub_M: CVSS:4.0 2.0 Low `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`
- GitHub: CVSS:4.0 Low `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`

## References

- <https://github.com/basecamp/trix/security/advisories/GHSA-mcrw-746g-9q8h> (web)
- <https://github.com/basecamp/trix/commit/75226089646841b0f774d8b152e5ec27d2d9e191> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-46812> (advisory)
- <https://github.com/basecamp/trix> (package)

## Sources

- CVE List: [CVE-2025-46812](https://www.cve.org/CVERecord?id=CVE-2025-46812), CVE Terms of Use, modified 2025-05-08
- GitHub Advisory Database: [GHSA-mcrw-746g-9q8h](https://github.com/advisories/GHSA-mcrw-746g-9q8h), CC-BY-4.0, modified 2025-05-08
- NVD: [CVE-2025-46812](https://nvd.nist.gov/vuln/detail/CVE-2025-46812), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-46812 · Whole record: https://cve.day/CVE-2025-46812.json · Rebuilt by cve.day 2026-11-25T22:58:57.822Z
