Skip to content
Heist/ feed
Back to feed
Medium

The Trix Editor Contains an Arbitrary Code Execution Vulnerability

Type: advisorySources: OSV

Trix is a rich text editor. The Trix editor, versions prior to 2.1.1, is vulnerable to arbitrary code execution when copying and pasting content from the web or other documents with markup into the editor. The vulnerability stems from improper sanitization of pasted content, allowing an attacker to embed malicious scripts which are executed within the context of the application. Users should upgrade to Trix editor version 2.1.1 or later, which incorporates proper sanitization of input from copied content.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-34341
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 19:43 UTC · Revision 1

Source evidence

The Trix Editor Contains an Arbitrary Code Execution Vulnerability

core-osv · Original source

Published 7 May 2024, 15:13 UTC

Trix is a rich text editor. The Trix editor, versions prior to 2.1.1, is vulnerable to arbitrary code execution when copying and pasting content from the web or other documents with markup into the editor. The vulnerability stems from improper sanitization of pasted content, allowing an attacker to embed malicious scripts which are executed within the context of the application. Users should upgrade to Trix editor version 2.1.1 or later, which incorporates proper sanitization of input from copied content.

osv:CVE-2024-34341
Complete source record
{
  "id": "0c2bda0d9f86adffe8ae9527fa4444b9d9157c4db44c4d58407cfd2a3a1a268f",
  "url": "https://osv.dev/vulnerability/CVE-2024-34341",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "The Trix Editor Contains an Arbitrary Code Execution Vulnerability",
    "summary": "Trix is a rich text editor. The Trix editor, versions prior to 2.1.1, is vulnerable to arbitrary code execution when copying and pasting content from the web or other documents with markup into the editor. The vulnerability stems from improper sanitization of pasted content, allowing an attacker to embed malicious scripts which are executed within the context of the application. Users should upgrade to Trix editor version 2.1.1 or later, which incorporates proper sanitization of input from copied content.",
    "evidence": "osv:CVE-2024-34341",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-34341",
      "aliases": [
        "CVE-2024-34341",
        "GHSA-qjqp-xr96-cj99"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/basecamp/trix",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0c79bcb854b8e8ee23e7bec571fe9d8dbfab9e5e"
                },
                {
                  "fixed": "1a5c68a14d48421fc368e30026f4a7918028b7ad"
                },
                {
                  "fixed": "841ff19b53f349915100bca8fcb488214ff93554"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.1.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "1a5c68a14d48421fc368e30026f4a7918028b7ad"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "841ff19b53f349915100bca8fcb488214ff93554"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "0c79bcb854b8e8ee23e7bec571fe9d8dbfab9e5e"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v2.1.1"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.3.1",
            "v2.1.0",
            "v2.0.10",
            "v2.0.9",
            "v2.0.8",
            "v2.0.7",
            "v2.0.6",
            "v2.0.5",
            "v2.0.4",
            "v2.0.3",
            "v2.0.2",
            "v2.0.1",
            "1.3.0",
            "1.2.4",
            "1.2.3",
            "1.2.2",
            "1.2.1",
            "1.2.0",
            "1.1.1",
            "1.1.0",
            "1.0.0",
            "0.12.1",
            "0.12.0",
            "0.11.4",
            "0.11.3",
            "0.11.2",
            "0.11.1",
            "0.11.0",
            "0.10.2",
            "0.10.1",
            "0.10.0",
            "0.9.10",
            "0.9.9",
            "0.9.8",
            "0.9.7",
            "0.9.6",
            "0.9.5",
            "0.9.4",
            "0.9.3",
            "0.9.2",
            "0.9.1",
            "0.9.0",
            "0.8.0",
            "0.5.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-34341.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:47.933530600Z",
      "provider": "osv",
      "references": [
        "https://github.com/basecamp/trix/releases/tag/v2.1.1",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/34xxx/CVE-2024-34341.json",
        "https://github.com/basecamp/trix/security/advisories/GHSA-qjqp-xr96-cj99",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-34341",
        "https://github.com/basecamp/trix/commit/1a5c68a14d48421fc368e30026f4a7918028b7ad",
        "https://github.com/basecamp/trix/commit/841ff19b53f349915100bca8fcb488214ff93554",
        "https://github.com/basecamp/trix/pull/1147",
        "https://github.com/basecamp/trix/pull/1149"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/34xxx/CVE-2024-34341.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-34341",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 515993,
  "published_at": "2024-05-07T15:13:03.137+00:00"
}