GitHub Advisoryadvisory · npm, RubyGems

GHSA-g9jg-w8vm-g96v Trix has a stored XSS vulnerability through its attachment attribute

MEDIUM Published 2025-12-31 Modified 2026-01-08 Official page ↗
Ecosystem
npm, RubyGems
Packages
trix, action_text-trix
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
Weaknesses
CWE-79
Reviewed
2025-12-31

Affected packages

• npm trix: < 2.1.16 → fixed in 2.1.16 • RubyGems action_text-trix: < 2.1.16 → fixed in 2.1.16

Description

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.

Related

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References