{"answers":{"affected":"1 open source package ship an affected version, including triliumnext/trilium.","exploited":"There is no known exploitation of CVE-2026-135686 in the wild and no public exploit code.","exposure":"An affected version is exposed as installed. No special setting or call is needed.","fix":"No fix has been published for CVE-2026-135686 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-135686 is a critical SQL injection vulnerability in TriliumNext Trilium, published on 24 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-135686 and fix it if it is affected.\n\nWhat it is: CVE-2026-135686 is a critical SQL injection vulnerability in TriliumNext Trilium, published on 24 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-135686 in the wild and no public exploit code.\nExposure: An affected version is exposed as installed. No special setting or call is needed.\n\nAffected packages and fixed versions:\n- triliumnext/trilium (GitHub): affected all versions up to 0.107.0; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-135686/ (Markdown: https://insights.sbomify.com/CVE-2026-135686/index.md)","id":"CVE-2026-135686","markdown":"https://insights.sbomify.com/CVE-2026-135686/index.md","name":"CVE-2026-135686","record":{"aliases":["GHSA-qr54-743q-fpq8"],"analysis":{"component_type":"web_application","exploitable_when_present":false,"fix_type":"no_fix_stated","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"file sync platform","requires_auth":"none","requires_specific_call":false,"summary":"Malicious Trilium sync partners can inject SQL via crafted entity names to steal sessions and tokens and write arbitrary database rows.","user_interaction":"not_required","vuln_class":"sql_injection","vulnerable_functions":["updateNormalEntity()"]},"analysis_generated_by":"sbomify/insights-2b-fp8","assigner":"VulnCheck","component":null,"cpe":[],"cvss":{"score":9.1,"severity":"critical","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","version":"4.0"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"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.","ecosystems":["GitHub"],"exploits":{"exploitdb":0,"first_seen":"2026-11-24","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-11-24T16:11:43Z","kind":"github_poc","ref":"https://github.com/cveForge/CVE-2026-135686","stars":0,"title":"PoC for CVE-2026-135686 — Trilium Notes Sync SQLi lastSyncedPush (CVSS 7.4)"}],"tier":"poc_unverified"},"has_fix":false,"headline":"Trilium through 0.107.0 SQL Injection via Sync Update Entity Name","id":"CVE-2026-135686","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"GitHub","product":null,"products":[],"type":"sql_injection","year":"2026"},"main_cpe":null,"main_fixed":[],"main_package":"triliumnext/trilium","n_packages":1,"n_references":4,"n_vendor_status":0,"next":{"headline":"Arcane before 3.0.0 Missing Enforcement of requiresPasswordChange Flag","id":"CVE-2026-135687"},"nickname":null,"packages":[{"ecosystem":"GitHub","fixed":[],"introduced":["0"],"last_affected":["0.107.0"],"name_kind":null,"package":"triliumnext/trilium","purl":"pkg:github/triliumnext/trilium","purl_source":"cna","scope":"upstream","source":"CVE-2026-135686"}],"prev":{"headline":"SparkyFitness before 1.12.0 Missing Current Password Check via update-password","id":"CVE-2026-135685"},"products":["Trilium"],"published":"2026-11-24","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","text_fixes":[],"updated":"2026-11-28","vendor_status":[],"vendors":["TriliumNext"]},"summary":"Malicious Trilium sync partners can inject SQL via crafted entity names to steal sessions and tokens and write arbitrary database rows.","url":"https://insights.sbomify.com/CVE-2026-135686/"}