Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. action_text-trix
  4. ›
  5. GHSA-g9jg-w8vm-g96v

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

December 31, 2025 (updated January 8, 2026)

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.

References

  • github.com/advisories/GHSA-g9jg-w8vm-g96v
  • github.com/basecamp/trix
  • github.com/basecamp/trix/commit/73c20cf03ab2b56c0ef9c9b1aaf63f2de44f4010
  • github.com/basecamp/trix/releases/tag/v2.1.16
  • github.com/basecamp/trix/security/advisories/GHSA-g9jg-w8vm-g96v
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/action_text-trix/GHSA-g9jg-w8vm-g96v.yml

Code Behaviors & Features

Detect and mitigate GHSA-g9jg-w8vm-g96v with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.1.16

Fixed versions

  • 2.1.16

Solution

Upgrade to version 2.1.16 or above.

Impact 4.6 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

gem/action_text-trix/GHSA-g9jg-w8vm-g96v.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 00:35:40 +0000.