{
  "id": "CVE-2026-135686",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-135686",
  "published_at": "2026-11-24T00:11:54.611Z",
  "title": "Trilium through 0.107.0 SQL Injection via Sync Update Entity Name",
  "vendor": "TriliumNext",
  "product": "Trilium",
  "cvss": {
    "score": 9.1,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-11-24T16:11:43Z",
    "first_seen_at": "2026-11-24T16:33:41.859Z",
    "days_after_publication": 0.7,
    "repo": "cveForge/CVE-2026-135686",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Trilium through 0.107.0 contains an sql injection vulnerability in updateNormalEntity() that allows malicious sync partners to inject SQL by supplying crafted entity names and column keys. Attackers can abuse /api/sync/changed or PUT /api/sync/update data to copy sessions, etapi_tokens and user_data into synced rows and write arbitrary database rows.",
  "cwe": "CWE-89",
  "cvss_by_source": {
    "cna": 9.1
  },
  "repos": [
    {
      "repo": "cveForge/CVE-2026-135686",
      "url": "https://github.com/cveForge/CVE-2026-135686",
      "created_at": "2026-11-24T16:11:43Z",
      "first_seen_at": "2026-11-24T16:33:41.859Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2026-11-23T15:47:28Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "TriliumNext",
        "product": "Trilium",
        "ranges": [
          "\u003c= 0.107.0"
        ],
        "fixed_in": null
      }
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/TriliumNext/Trilium/commit/4ec30088fce936f2e87c0af6af3f89c47d331176"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/api/sync/check",
      "query_markers": [
        "lastSyncedPush="
      ],
      "headers": [
        {
          "name": "Accept",
          "value": "application/json"
        }
      ],
      "ports": [
        8080
      ],
      "user_agents": [
        "cveForge-PoC"
      ],
      "protocol": "https",
      "repos": [
        "cveForge/CVE-2026-135686"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "cveForge/CVE-2026-135686/poc.py:27"
      ]
    }
  ],
  "rules": []
}
