# CVE-2026-45733: Trilium: Stored XSS in note icon rendering leads to Remote Code Execution in Electron desktop app

> Stored XSS in Trilium Notes allows remote code execution via Electron's nodeIntegration when victims view malicious note icons.

- **Severity:** High 8.3 (`CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** An administrator
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** No
- **Published:** 18 Aug 2026
- **Updated:** 18 Aug 2026
- **Also known as:** GHSA-h45q-4qc4-8hhg

## What is CVE-2026-45733?

CVE-2026-45733 is a high-severity cross-site scripting vulnerability in TriliumNext Trilium, published on 18 Aug 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

### Official description

Trilium Notes is a cross-platform, hierarchical note taking application focused on building large personal knowledge bases. Prior to 0.103.0, the #iconClass label value is returned raw by getNoteIcon() and inserted without HTML attribute encoding into class attributes in apps/client/src/widgets/quick_search.ts and apps/client/src/services/note_autocomplete.ts, allowing a stored payload to execute automatically when a victim opens a new tab or uses Ctrl+J and, because Electron enables nodeIntegration and disables contextIsolation, run operating-system commands as the victim. This issue is fixed in version 0.103.0.

Weakness: CWE-83 (Improper Neutralization of Script in Attributes in a Web Page), CWE-79 (Improper Neutralization of Input During Web Page Generation), CWE-693 (Protection Mechanism Failure)

## Which versions are affected by CVE-2026-45733?


## How do I fix CVE-2026-45733?

No fix has been published for CVE-2026-45733 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-45733 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-45733 exists.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-45733 and fix it if it is affected.

What it is: CVE-2026-45733 is a high-severity cross-site scripting vulnerability in TriliumNext Trilium, published on 18 Aug 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-45733 exists.

Affected product: TriliumNext Trilium. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. 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.
2. 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.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-45733/ (Markdown: https://insights.sbomify.com/CVE-2026-45733/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-45733
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-45733
- OSV: https://osv.dev/vulnerability/CVE-2026-45733

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-45733/
Summaries are generated and may contain mistakes; the official description above is the record.
