Loading...
Skip to main content

CVE-2026-73428 — Vulnerability in action_text-trix — CVE Details

MEDIUM

Trix: Stored XSS via HTMLParser attribute injection on paste

Published July 24, 2026Updated August 12, 2026Source: osv

Summary

### Impact The Trix editor, in versions prior to 2.1.18, is vulnerable to XSS when crafted HTML is pasted into the editor. The `HTMLParser` processed a mock attachment, a `<span>` carrying an empty `data-trix-attachment="{}"`. The empty attachment object caused the element to bypass attachment handling, so its `data-trix-attributes` were applied to a plain string piece. The pre-2.1.18 `StringPiece.fromJSON` accepted the `href` without validation, so an attacker-supplied `javascript:` URI was carried into the document model and emitted verbatim into the serialized HTML, executing when the content was rendered and clicked. This is a stored XSS in any application that accepts untrusted rich text through Trix and renders the serialized output to other users. Applications that apply server-side HTML sanitization, such as the Rails built-in sanitizer, are additionally protected because the payload is neutralized on save. This vulnerability shares its fix with GHSA-53p3-c7vp-4mcc. Both are resolved by the `StringPiece.fromJSON` sanitization added in 2.1.18. This advisory covers the paste and HTMLParser entry vector, while GHSA-53p3-c7vp-4mcc covers the drag-and-drop path through the fallback Level0InputController. ### Patches Users should upgrade to Trix editor version 2.1.18 or later. ### References The vulnerability was responsibly reported by HackerOne researcher [newbiefromcoma](https://hackerone.com/newbiefromcoma).

Advisory Timeline

  • First published July 24, 2026 (80 days ago).
  • Last revised August 12, 2026 — 19 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update action_text-trix to 2.1.18 or later
gem install action_text-trix -v 2.1.18
npm
Update trix to 2.1.18 or later
npm install trix@2.1.18

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 2 ecosystems: npm (1), rubygems (1).

PackageEcosystemAffectedFixed In
action_text-trix
rubygems
0.0.1, 2.1.15, 2.1.16, 2.1.172.1.18
trix
npm
All versions2.1.18

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 4.6 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

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

Frequently Asked Questions

What is CVE-2026-73428?
Trix: Stored XSS via HTMLParser attribute injection on paste This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 4.6/10).
How do I check if my project is affected by CVE-2026-73428?
CVE-2026-73428 affects action_text-trix and trix. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-73428 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
4.6

Exploitation requires specific conditions or has limited impact. Remediate within weeks.

Also Known As

GHSA-53g2-mvcc-q9x3

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies