CVE-2025-46812
LOW 2.0CVSS 4.0Trix vulnerable to Cross-site Scripting on copy & paste
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.
- Published
- 8 May 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-79
- Also known as
- GHSA-mcrw-746g-9q8h
- Sources
- NVDJSONOSV GHSA-mcrw-746g-9q8hJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | LOW 2.0 | 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 |
| OSV | GitHub | CVSS 4.0 | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | trix | < 2.1.15 | 2.1.15 |
References
- https://github.com/basecamp/trix/commit/75226089646841b0f774d8b152e5ec27d2d9e191 · WEB
- https://github.com/basecamp/trix/security/advisories/GHSA-mcrw-746g-9q8h · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-46812 · ADVISORY
- https://github.com/basecamp/trix · PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 8 May 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 May 2025)