Description
Trix is a what-you-see-is-what-you-get rich text editor for everyday writing. Prior to 2.1.17, Trix is vulnerable to cross-site scripting when a data-trix-serialized-attributes attribute bypasses the DOMPurify sanitizer. An attacker can craft HTML containing a data-trix-serialized-attributes attribute with a malicious payload that, when rendered, executes arbitrary JavaScript in the user's session and may perform unauthorized actions or disclose sensitive information. This issue is fixed in version 2.1.17.
Published: 2026-08-18
Score: 4.6 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

This vulnerability in the Trix rich‑text editor allows an attacker to inject script through the data-trix-serialized-attributes attribute. The injected payload bypasses the DOMPurify sanitizer, leading to stored cross‑site scripting. When a user loads the offending content, arbitrary JavaScript executes in the browser session, enabling unauthorized actions or data theft.

Affected Systems

The flaw affects any installation of Basecamp Trix prior to version 2.1.17. Clients that embed the editor in webpages or content management systems and display data from untrusted sources are at risk if they have not upgraded the editor.

Risk and Exploitability

With a CVSS score of 4.6, the vulnerability presents moderate risk, and it is not listed in CISA KEV. The EPSS score is not available; exploitation requires an attacker to supply crafted HTML that the editor parses for a user. Because the flaw is client‑side, the attack surface is limited to contexts where the editor renders user content, such as publicly exposed pages or malicious files.

Generated by OpenCVE AI on August 18, 2026 at 17:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the official patch to upgrade Trix to version 2.1.17 or later, which addresses the stored XSS flaw identified by CWE‑79.
  • Ensure the upgraded editor follows CWE‑79 best practices for input sanitization, especially configuring DOMPurify to handle serialized attributes.
  • If an upgrade is not immediately possible, remove or neutralize any data‑trix‑serialized‑attributes from untrusted content, following CWE‑79 guidelines to eliminate arbitrary script execution.

Generated by OpenCVE AI on August 18, 2026 at 17:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-qmpg-8xg6-ph5q Trix has a Stored XSS vulnerability through serialized attributes
History

Tue, 18 Aug 2026 16:45:00 +0000

Type Values Removed Values Added
First Time appeared Basecamp
Basecamp trix
Vendors & Products Basecamp
Basecamp trix

Tue, 18 Aug 2026 14:30:00 +0000

Type Values Removed Values Added
Description Trix is a what-you-see-is-what-you-get rich text editor for everyday writing. Prior to 2.1.17, Trix is vulnerable to cross-site scripting when a data-trix-serialized-attributes attribute bypasses the DOMPurify sanitizer. An attacker can craft HTML containing a data-trix-serialized-attributes attribute with a malicious payload that, when rendered, executes arbitrary JavaScript in the user's session and may perform unauthorized actions or disclose sensitive information. This issue is fixed in version 2.1.17.
Title Trix: Stored XSS vulnerability through serialized attributes
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 4.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-18T17:47:02.477Z

Reserved: 2026-08-12T14:32:11.796Z

Link: CVE-2026-73426

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-18T15:17:08.043

Modified: 2026-08-18T18:19:33.353

Link: CVE-2026-73426

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T17:30:15Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')