CVE-2026-73428 — Vulnerability in trix — CVE Details
Trix: Stored XSS via HTMLParser attribute injection on paste
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.35%). Schedule for your next planned update.
Does your project use an affected trix version?
Paste your package-lock.json to check it for CVE-2026-73428 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
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.
Advisory Timeline
- First published July 24, 2026 (125 days ago).
- Last revised August 12, 2026 — 19 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install trix@2.1.18
gem install action_text-trix -v 2.1.18
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 2 ecosystems: npm (1), RubyGems (1).
| Package | Fixed In |
|---|---|
| trix npm · Affected: All versions | 2.1.18 |
| action_text-trix RubyGems · Affected: 0.0.1, 2.1.15, 2.1.16, 2.1.17 | 2.1.18 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-79Cross-site Scripting (XSS)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 4.6 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
References
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 trix and action_text-trix. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-73428 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is a below-median EPSS score — only 21.4% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-128084MEDIUM
sqlite3-ruby: Possible SQL query truncation when a string is 4 GiB or larger
- CVE-2026-115472MEDIUM
Doorkeeper: When using public clients, any client can revoke any access token
- CVE-2024-34341MEDIUM
Trix Editor Arbitrary Code Execution Vulnerability
- CVE-2026-73426MEDIUM
Trix has a Stored XSS vulnerability through serialized attributes