GHSA-qmpg-8xg6-ph5q

Suggest an improvement
Source
https://github.com/advisories/GHSA-qmpg-8xg6-ph5q
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-qmpg-8xg6-ph5q/GHSA-qmpg-8xg6-ph5q.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-qmpg-8xg6-ph5q
Aliases
Downstream
CGA (8)
Published
2026-03-12T17:29:30Z
Modified
2026-09-10T03:51:00Z
Severity
  • 4.6 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N CVSS Calculator
Summary
Trix has a Stored XSS vulnerability through serialized attributes
Details

Impact

The Trix editor, in versions prior to 2.1.17, is vulnerable to XSS attacks when a data-trix-serialized-attributes attribute bypasses the DOMPurify sanitizer.

An attacker could craft HTML containing a data-trix-serialized-attributes attribute with a malicious payload that, when the content is rendered, 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.

Patches

Update Recommendation: Users should upgrade to Trix editor version 2.1.17 or later.

References

The XSS vulnerability was responsibly reported by Hackerone researcher newbiefromcoma.

Database specific
{
    "cwe_ids":  [
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-03-12T17:29:30Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

RubyGems / action_text-trix

Package

Name
action_text-trix
Purl
pkg:gem/action_text-trix

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.1.17

Affected versions

0.*
0.0.1
2.*
2.1.15
2.1.16

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-qmpg-8xg6-ph5q/GHSA-qmpg-8xg6-ph5q.json"

npm / trix

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.1.17

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-qmpg-8xg6-ph5q/GHSA-qmpg-8xg6-ph5q.json"