Skip to main content

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

MEDIUM

Trix: Stored XSS via HTMLParser attribute injection on paste

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

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.

Check my package-lock.json

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
Update trix to 2.1.18 or later
npm install trix@2.1.18
Bundler
Update action_text-trix to 2.1.18 or later
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).

PackageFixed In
trix npm · Affected: All versions2.1.18
action_text-trix RubyGems · Affected: 0.0.1, 2.1.15, 2.1.16, 2.1.172.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 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

CVSS Score
4.6

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
0.35%
EPSS percentile: 21.4

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

GHSA-53g2-mvcc-q9x3

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my package-lock.json