Advisory

GHSA-g9jg-w8vm-g96v

Also known as: None

Summary

Trix has a stored XSS vulnerability through its attachment attribute

Details

Impact
The Trix editor, in versions prior to 2.1.16, is vulnerable to XSS attacks through attachment payloads.

An attacker could inject malicious code into a data-trix-attachment attribute that, when rendered as HTML and clicked on, could 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.16 or later.

Resources
The XSS vulnerability was reported by HackerOne researcher michaelcheers.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-12-31 22:07 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

trix

npm · All systems

Affected

  • introduced 0, fixed 2.1.16 (semver)

Fixed versions

2.1.16

Fix

action_text-trix

RubyGems · All systems

Affected

  • introduced 0, fixed 2.1.16 (ecosystem)

Fixed versions

2.1.16

Fix

The export has no generic command for this ecosystem.

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