Trilium Notes is a free, open-source note-taking app for building a large personal knowledge base. Install the desktop app for Windows, macOS or Linux and you get a tree of notes you can nest as deep as you like, a rich text editor with tables, images and maths, code notes with syntax highlighting and full-text search, all kept in one database file on your computer.
It earns its place because it is built for people with thousands of notes: one note can sit in several places in the tree at once, every note keeps a version history, attributes let you tag and query notes, and the project says it stays fast past 100,000 notes. It also has canvas notes based on Excalidraw, mind maps, relation maps, geo maps, per-note encryption, a web clipper, Evernote and Markdown import, scripting and a REST API. Run a Trilium server with Docker to sync between computers, open your notes in a phone browser or publish some to the web. AI chat is optional and off until you set it up.
Trilium is licensed under AGPL-3.0 and written in TypeScript. Its original developer, Zadam, handed the repository to the community TriliumNext team, which maintains it now. It has about 39,200 stars and over 530 contributors. Version 0.108.0 came out on 29 November 2026.
- Repository: github.com/TriliumNext/Trilium
- Licence: AGPL-3.0 (GNU Affero General Public License v3.0)
- Language: TypeScript. Stars: 39.2K. Forks: 2,660. Last push: Dec 2, 2026.
- Scan: safe, Dec 2, 2026, commit ebb4c9b
Who it is for
Researchers, students, writers and developers who keep large, linked notes, people leaving Evernote or OneNote, and self-hosters who want sync on their own server. The desktop app runs on Windows, macOS and Linux; syncing between devices needs a Trilium server you run yourself or rent.
Getting started
1. Download the desktop app for Windows, macOS or Linux
https://github.com/TriliumNext/Trilium/releases/latest2. Or on Linux, install it from Flathub
flatpak install flathub org.triliumnotes.Trilium3. Optional: run a sync server with Docker; it keeps notes in ~/trilium-data and only listens on this computer
docker run -d -p 127.0.0.1:8080:8080 -v ~/trilium-data:/home/node/trilium-data triliumnext/trilium:stable4. Open the server, set a password, then add its address in each desktop app's sync options
http://localhost:8080The desktop app keeps your notes in a trilium-data folder: ~/.local/share/trilium-data on Linux, AppData\Roaming on Windows and Library/Application Support on a Mac, and it makes automatic backups there. Nothing else on your system is changed. To reach a server from other devices, put it behind HTTPS with a reverse proxy rather than opening port 8080. Our scan covers the source code, not the prebuilt apps or the Docker image.
Safety scan
We cloned TriliumNext/Trilium at commit ebb4c9b on Dec 2, 2026 and ran the checks described on the GitHub Tools page: credential patterns, decode-and-execute code, install-time scripts, committed binaries, risky CI workflows, every host the code talks to, known vulnerabilities in pinned dependencies, and project hygiene. A person read every hit. This is what we found.
- 2 secret hits and 6 committed binaries across 6,941 files and about 1.38 million lines, mostly TypeScript. Both secrets are throwaway test keys: apps/server/docker/authelia/config/configuration.yml line 62 signs logins for a local Authelia server used to test OpenID sign-in (its README says every secret there is public), and apps/server/spec/support/self_signed_tls.ts line 9 is a self-signed key for TLS tests. The binaries are EPUB and ODT test documents, which are zip files, and Gradle's standard wrapper jar for the Android build.
- 0 pattern hits. The lifecycle scripts run only when you build from source: the root prepare script builds the bundled PDF viewer and the web clipper, and splitjs's prepublish runs when its maintainers publish it. apps/server/start-docker.sh just starts the server inside the Docker image.
- No install script. You download the desktop app from the releases page or Flathub, or run the triliumnext/trilium Docker image, with no sudo and no shell profile changes. A new server asks you to set a password on your first visit, and it supports OpenID and TOTP two-factor sign-in.
- 51 advisories across 2,384 npm packages in pnpm-lock.yaml, 2 critical: both are cross-spawn's bug with Windows batch files, in build tooling that starts other programs. Of the 31 high, 17 are in tar and 11 in undici, plus ws and image-size: denial-of-service, archive-extraction and TLS-check bugs in libraries the app and its build tools pull in.
- Its privacy policy says there are no analytics, no telemetry and no crash reports. The desktop app and server ask api.github.com whether a new release is out (Options, Other turns it off), the desktop app downloads spell-check dictionaries, geo maps load OpenStreetMap tiles and OneNote import talks to Microsoft Graph when you use it. AI features stay off until you add a provider: an API key, or the Claude Code, GitHub Copilot or Codex command-line tools already signed in on your computer, which Trilium starts for you. 26 workflows; the one on pull_request_target only labels pull requests with merge conflicts and never checks out their code. All 84 third-party action uses are pinned to a commit. A security policy, Dependabot, Renovate and CodeQL are present; no OpenSSF Scorecard result.
What the scanner counted
| Check | Result |
|---|---|
| Secrets | 2 candidates found and read; see the notes above. |
| Suspicious code | None found. |
| Install-time code | 4 npm lifecycle scripts. 1 installer script |
| Committed binaries | 6 executable or compiled objects committed; listed under the raw findings. |
| CI workflows | 26 workflows. 1 uses pull_request_target, none check out the pull request head. 0 of 84 third-party actions pinned to a tag rather than a commit. |
| Network hosts | 40 distinct hosts referenced from source; most often github.com, e.com, tc39.es, www.youtube.com. 27 URLs to a bare IP address, listed under the raw findings. |
| Known vulnerabilities | 51 advisories across 2,384 pinned packages: 2 critical, 31 high, 17 moderate, 1 low. pnpm-lock.yaml: 2,384 packages, 51 advisories. |
| Project hygiene | Has security policy, automated dependency updates, CodeQL, licence file, contributing guide. |
| OpenSSF Scorecard | Not scored: the project is not in Scorecard's weekly index. |
The raw findings
Every hit the scanner wrote out, with a link to the exact line at the scanned commit. Secrets candidates are redacted.
Secret candidates (2, redacted)
| Where | Rule | Match |
|---|---|---|
| apps/server/docker/authelia/config/configuration.yml:62 | private-key | -----B…--- (27 chars) |
| apps/server/spec/support/self_signed_tls.ts:9 | private-key | -----B…--- (27 chars) |
URLs to bare IP addresses (27)
| Where | Rule | Match |
|---|---|---|
| apps/server/src/services/llm/providers/antigravity_agent.spec.ts:318 | ip-literal-url | readUrl("https://93.184.215.14/"), |
| apps/server/src/services/llm/providers/antigravity_agent.spec.ts:322 | ip-literal-url | { ...readUrl("https://93.184.215.14/"), toolCall: { kind: "execute", title: "Run read_url_content?", rawInput: { Url: "https://93.184.215.14/" } } }, |
| apps/server/src/services/llm/providers/antigravity_agent.spec.ts:322 | ip-literal-url | { ...readUrl("https://93.184.215.14/"), toolCall: { kind: "execute", title: "Run read_url_content?", rawInput: { Url: "https://93.184.215.14/" } } }, |
| apps/server/src/services/llm/providers/antigravity_agent.spec.ts:327 | ip-literal-url | expect(await decideDuringTurn({}, [readUrl("https://93.184.215.14/")])).toEqual([denied]); |
| apps/server/src/services/llm/providers/public_url.spec.ts:27 | ip-literal-url | expect(await isPublicHttpUrl("http://93.184.215.14/", lookup)).toBe(true); |
| apps/server/src/services/llm/providers/public_url.spec.ts:46 | ip-literal-url | "http://100.64.0.1/", |
| apps/server/src/services/llm/providers/public_url.spec.ts:48 | ip-literal-url | "http://224.0.0.1/", |
| apps/server/src/services/safe_fetch.spec.ts:261 | ip-literal-url | const response = await safeFetch("http://8.8.8.8/data"); |
| apps/server/src/services/safe_fetch.spec.ts:279 | ip-literal-url | const response = await safeFetch("http://8.8.8.8/empty"); |
| apps/server/src/services/safe_fetch.spec.ts:289 | ip-literal-url | const response = await safeFetch("http://8.8.8.8/cancel"); |
| apps/server/src/services/safe_fetch.spec.ts:303 | ip-literal-url | const response = await safeFetch("http://8.8.8.8/aborted"); |
| apps/server/src/services/safe_fetch.spec.ts:330 | ip-literal-url | const response = await safeFetch("http://8.8.8.8/err"); |
| apps/server/src/services/safe_fetch.spec.ts:340 | ip-literal-url | const response = await safeFetch("http://8.8.8.8/start"); |
| apps/server/src/services/safe_fetch.spec.ts:344 | ip-literal-url | expect(fetchMock.mock.calls[1][0]).toBe("http://8.8.8.8/next"); |
| apps/server/src/services/safe_fetch.spec.ts:358 | ip-literal-url | await expect(safeFetch("http://8.8.8.8/start")).rejects.toThrow("private/internal"); |
| apps/server/src/services/safe_fetch.spec.ts:368 | ip-literal-url | await expect(safeFetch("http://8.8.8.8/noloc")).rejects.toThrow("Redirect without Location header"); |
| apps/server/src/services/safe_fetch.spec.ts:374 | ip-literal-url | await expect(safeFetch("http://8.8.8.8/loop")).rejects.toThrow("Too many redirects"); |
| apps/server/src/services/safe_fetch.spec.ts:382 | ip-literal-url | makeResponse(null, { status: 302, headers: { location: "https://8.8.4.4/collect" } }) |
| apps/server/src/services/safe_fetch.spec.ts:385 | ip-literal-url | await expect(safeFetch("https://8.8.8.8/v1/chat", {}, { maxRedirects: 0 })) |
| apps/server/src/services/safe_fetch.spec.ts:396 | ip-literal-url | await safeFetch("http://8.8.8.8/v1/chat", {}, { timeoutMs: null }); |
| apps/server/src/services/safe_fetch.spec.ts:414 | ip-literal-url | await safeFetch("http://8.8.8.8/signal", { signal: controller.signal }); |
| apps/server/src/services/safe_fetch.spec.ts:496 | ip-literal-url | const response = await safeFetch("http://8.8.8.8/named"); |
| apps/server/src/services/safe_fetch.spec.ts:499 | ip-literal-url | "http://8.8.8.8/named", expect.objectContaining({ dispatcher: agentInstances[0] })); |
| packages/trilium-core/src/services/llm/web_search.spec.ts:310 | ip-literal-url | "http://100.64.0.1/", "http://[::1]/", "http://[::]/", "http://[fd00::1]/", "http://[fe80::1]/", |
| and 3 more | ||
npm lifecycle scripts (4)
apps/web-clipper/package.jsonpostinstall:wxt preparepackage.jsonpostinstall:pnpm preparepackage.jsonprepare:pnpm run --filter pdfjs-viewer build && pnpm run --filter web-clipper postinstallpackages/splitjs/package.jsonprepublish:rollup -c
Installer scripts (1)
- apps/server/start-docker.sh, 17 lines
Committed binaries (6)
apps/server/src/services/ocr/processors/samples/demo.epub: JAR, 229 KBapps/mobile/android/gradle/wrapper/gradle-wrapper.jar: JAR, 44 KBpackages/trilium-core/src/services/toc/fixtures/toc_contract.epub: JAR, 5 KBpackages/trilium-core/src/services/toc/fixtures/toc_contract_ids.epub: JAR, 3 KBpackages/trilium-core/src/services/toc/fixtures/toc_contract_ncx.epub: JAR, 2 KBpackages/trilium-core/src/services/toc/fixtures/toc_contract.odt: JAR, 2 KB
Worst known vulnerabilities (24 of 51)
| Advisory | Severity | Package | Summary |
|---|---|---|---|
| GHSA-ghv9-86vm-4v8m | critical | cross-spawn@6.0.6 | cross-spawn: Command injection on Windows when spawning batch files |
| GHSA-ghv9-86vm-4v8m | critical | cross-spawn@7.0.6 | cross-spawn: Command injection on Windows when spawning batch files |
| GHSA-w3rx-r6r6-pgpr | high | image-size@0.7.5 | image-size: ICNS parser allows denial of service through an infinite loop |
| GHSA-25mm-r35j-6hgm | high | tar@7.5.22 | node-tar UnpackSync never completes sync-stream extraction after any failing entry (PEND/UNPEND imbalance) |
| GHSA-3wwj-8j6r-q339 | high | tar@7.5.22 | node-tar: Symlink containment bypass via chained symlinks lets tar.x() create links that resolve outside the extraction … |
| GHSA-4pf9-5fpx-xmr6 | high | tar@7.5.22 | node-tar: Symlink target escapes the extraction directory through an in-archive symlink chain |
| GHSA-6wwr-g865-f46r | high | tar@7.5.22 | node-tar: Nested symlink target can escape node-tar extraction root |
| GHSA-72fp-85cc-g945 | high | tar@7.5.22 | node-tar crashes the process with an uncaught exception on a 4-byte zstd magic header when the Node runtime lacks native… |
| GHSA-7c32-79xj-j3jp | high | tar@7.5.22 | node-tar: A small archive exhausts memory or CPU through path-reservation bookkeeping |
| GHSA-98v3-7xjr-fg83 | high | tar@7.5.22 | node-tar async extraction deadlocks permanently when an entry's linkpath is a hierarchical relative of its own path |
| GHSA-ffhw-4r4q-5cwv | high | tar@7.5.22 | node-tar: Global PAX extended header injects attacker-controlled linkpath into tar.Parser entries, bypassing strict-mode… |
| GHSA-gvrf-jx37-rjv5 | high | tar@7.5.22 | node-tar: Symlink linkpath escape check is lexical: '..' after an in-archive symlink creates symlinks outside the extrac… |
| GHSA-hqgx-p3r3-2cfg | high | tar@7.5.22 | node-tar: SymbolicLink extraction escapes the extraction directory on non-Windows hosts via a backslash separator differ… |
| GHSA-jmj2-9c5q-vw73 | high | tar@7.5.22 | node-tar: Symlink linkpath containment bypass via entry paths ending in '/.' |
| GHSA-mhqm-9wj8-w7r4 | high | tar@7.5.22 | node-tar: Symlink containment bypass via nested symlink + '..' (lexical linkpath check) |
| GHSA-mpg7-vg3p-wc3m | high | tar@7.5.22 | node-tar: Newline injection in PAX extended-header records enables entry-attribute forgery (path overwrite → npm postins… |
| GHSA-ph3c-p786-j4rp | high | tar@7.5.22 | node-tar: Non-finite PAX size (Infinity) bypasses validation, causing extraction entry loss and an uncaught exception wh… |
| GHSA-qv2w-fc3h-pm27 | high | tar@7.5.22 | node-tar: Archive framing differential from PAX size still being applied to GNU/PAX meta entries via ReadEntry and relat… |
| GHSA-rgjp-p5j7-w36x | high | tar@7.5.22 | node-tar parses PAX extended headers by newline-splitting instead of length-delimiting, causing record dropping and forg… |
| GHSA-wpwg-r92p-fjjh | high | tar@7.5.22 | node-tar: Incomplete NUL-byte truncation in ustar, GNU, and PAX names causes name differentials and async crashes |
| GHSA-2m5v-pch6-74hx | high | undici@6.28.1 | undici vulnerable to TLS certificate validation bypass via dropped tls options in Agent |
| GHSA-qrxm-fqhp-jwvm | high | undici@6.28.1 | undici vulnerable to Denial of Service via TLS 1.2 certificate-changing renegotiation |
| GHSA-xjj6-f33q-929c | high | undici@6.28.1 | undici vulnerable to Denial of Service via unhandled error on excessive content-encodings |
| GHSA-2m5v-pch6-74hx | high | undici@7.29.1 | undici vulnerable to TLS certificate validation bypass via dropped tls options in Agent |
Workflows worth a look
- .github/workflows/checks.yml: pull_request_target
By the numbers
| Stars | 39.2K |
|---|---|
| Forks | 2,660 |
| Contributors | 535 |
| Commits | 45.2K |
| Open issues | 542 |
| Open pull requests | 46 |
| Releases | 360 |
| Latest release | v0.108.0 |
| Licence | AGPL-3.0 |
| Main language | TypeScript |
| Project age | 9 years |
| Last push | Dec 2, 2026 |
| Tracked files | 6,941 |
| Lines of code | 1.4M |
| Checkout size | 133 MB |
Lines by language: TypeScript 931.8K, JSON 176K, Markdown 88.6K, CSS 75.6K, JavaScript 49.2K, HTML 37.8K.
Questions
Is Trilium Notes free?
Yes. The app and the server are free and open source under AGPL-3.0, with no paid tier; the developers take donations through GitHub Sponsors and Liberapay.
Trilium or Obsidian?
Trilium if you want a free, open-source app with built-in sync to your own server, a deep note tree and scripting. Obsidian if you prefer plain Markdown files in folders and a large plugin library; its own sync is a paid add-on.
Does Trilium work on my phone?
Yes. A Trilium server has a touch-friendly mobile view you open in your phone's browser, and there is an Android app.
Does Trilium send my data anywhere?
Not to the Trilium project. Your notes stay on your devices and your own sync server; it checks GitHub for updates, and AI features send what you share only to the provider you set up.
How do I sync Trilium between computers?
Run a Trilium server, Docker is the easiest way, then enter its address in the sync options of each desktop app. Every copy must use the same sync version, so update them together.
This post is part of GitHub Tools, where every repository is cloned and scanned before it is written up. The scan is a snapshot of one commit on one day; the repository has moved on since, so check it before you install.
