CVE-2026-91021
Received Received - Intake

Stored XSS in Trilium Notes via WebView Note Sharing

Vulnerability report for CVE-2026-91021, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-14

Last updated on: 2026-09-14

Assigner: CERT/CC

Description

Trilium Notes, version v0.103.0 and earlier, contains a stored cross-site scripting (XSS) vulnerability in the share renderer for webView notes due to improper HTML escaping of user-controlled #webViewSrc values. This vulnerability allows attackers with note-authoring privileges to inject arbitrary JavaScript that executes for any user who opens the shared note, including administrators.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-14
Last Modified
2026-09-14
Generated
2026-09-14
AI Q&A
2026-09-14
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
zadam trilium_notes to 0.103.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

Trilium Notes versions up to v0.103.0 have a stored cross-site scripting (XSS) flaw in the share renderer for webView notes. This happens because user-controlled #webViewSrc values are not properly escaped as HTML. Attackers with note-authoring rights can inject malicious JavaScript into shared notes, which then executes when any user, including administrators, opens the note.

Detection Guidance

To detect this XSS vulnerability in Trilium Notes, inspect shared notes for webView notes containing user-controlled #webViewSrc values. Check if HTML escaping is properly implemented by reviewing note content for JavaScript injection attempts or unusual script tags in shared notes.

Impact Analysis

If you author or share notes in Trilium Notes v0.103.0 or earlier, an attacker could inject code that runs in your browser when others view the note. This could lead to stolen session cookies, account takeover, or unauthorized actions performed on your behalf. Even as a reader, visiting a crafted note may trigger the malicious script.

Compliance Impact

This XSS vulnerability could violate GDPR by exposing user data through unauthorized script execution or enabling data breaches. For HIPAA, it may risk protected health information if notes contain such data and are shared with malicious payloads. Organizations must address this to maintain compliance with data protection requirements.

Mitigation Strategies

Upgrade Trilium Notes to a version later than v0.103.0 where the HTML escaping issue is fixed. Review shared notes for any malicious scripts and remove unauthorized JavaScript injections. Restrict note-authoring privileges to trusted users only.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-91021. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart