Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:npm/trix@2.1.15
purl pkg:npm/trix@2.1.15
Next non-vulnerable version 2.1.17
Latest non-vulnerable version 2.1.18
Risk 3.1
Vulnerabilities affecting this package (2)
Vulnerability Summary Fixed by
VCID-k8n9-p3pp-8fh7
Aliases:
GHSA-qmpg-8xg6-ph5q
Trix has a Stored XSS vulnerability through serialized attributes ### 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](https://hackerone.com/newbiefromcoma).
2.1.17
Affected by 0 other vulnerabilities.
VCID-q1s4-ash2-5udy
Aliases:
GHSA-g9jg-w8vm-g96v
Trix has a stored XSS vulnerability through its attachment attribute The Trix editor, in versions prior to 2.1.16, is vulnerable to XSS attacks through attachment payloads. An attacker could inject malicious code into a data-trix-attachment attribute that, when rendered as HTML and clicked on, 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.
2.1.16
Affected by 1 other vulnerability.
Vulnerabilities fixed by this package (1)
Vulnerability Summary Aliases
VCID-d266-4vk3-buc1 Trix vulnerable to Cross-site Scripting on copy & paste ### Impact The Trix editor, in versions prior to 2.1.15, is vulnerable to XSS attacks when pasting malicious code. An attacker could trick a user to copy and paste malicious code that would 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.15 or later. ### References The XSS vulnerability was reported by HackerOne researcher [hiumee](https://hackerone.com/hiumee?type=user). CVE-2025-46812
GHSA-mcrw-746g-9q8h

Date Actor Action Vulnerability Source VulnerableCode Version
2026-04-17T00:37:08.176045+00:00 GitLab Importer Affected by VCID-k8n9-p3pp-8fh7 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/trix/GHSA-qmpg-8xg6-ph5q.yml 38.4.0
2026-04-17T00:05:12.219524+00:00 GitLab Importer Affected by VCID-q1s4-ash2-5udy https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/trix/GHSA-g9jg-w8vm-g96v.yml 38.4.0
2026-04-13T14:28:19.267961+00:00 GitLab Importer Affected by VCID-k8n9-p3pp-8fh7 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/trix/GHSA-qmpg-8xg6-ph5q.yml 38.3.0
2026-04-12T01:28:28.450734+00:00 GitLab Importer Affected by VCID-q1s4-ash2-5udy https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/trix/GHSA-g9jg-w8vm-g96v.yml 38.3.0
2026-04-07T04:57:46.288628+00:00 GHSA Importer Fixing VCID-d266-4vk3-buc1 https://github.com/advisories/GHSA-mcrw-746g-9q8h 38.1.0
2026-04-03T01:37:11.275083+00:00 GitLab Importer Affected by VCID-q1s4-ash2-5udy https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/trix/GHSA-g9jg-w8vm-g96v.yml 38.1.0
2026-04-02T12:41:23.660187+00:00 GitLab Importer Fixing VCID-d266-4vk3-buc1 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/trix/CVE-2025-46812.yml 38.0.0
2026-04-01T12:56:59.953762+00:00 GithubOSV Importer Fixing VCID-d266-4vk3-buc1 https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/05/GHSA-mcrw-746g-9q8h/GHSA-mcrw-746g-9q8h.json 38.0.0