Advisory

GHSA-mcrw-746g-9q8h

Also known as: CVE-2025-46812

Summary

Trix vulnerable to Cross-site Scripting on copy & paste

Details

Impact
The Trix editor, in versions prior to 2.1.15, is 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.

Patches
Update Recommendation: Users should upgrade to Trix editor version 2.1.15 or later.

References
The XSS vulnerability was reported by HackerOne researcher hiumee.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2025-05-08 14:48 UTC
Modified
2025-05-08 22:00 UTC

Affected packages and fixes

trix

npm · All systems

Affected

  • introduced 0, fixed 2.1.15 (semver)

Fixed versions

2.1.15

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences