{"id":"CVE-2026-45733","state":"PUBLISHED","title":"Trilium: Stored XSS in note icon rendering leads to Remote Code Execution in Electron desktop app","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.","publishedAt":"2026-08-18T15:13:16.946Z","updatedAt":"2026-08-18T15:33:41.704Z","severity":{"score":8.3,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["TriliumNext Trilium"],"affected":[{"vendor":"TriliumNext","product":"Trilium","versions":[{"version":"< 0.103.0","status":"affected"}]}],"references":["https://github.com/TriliumNext/Trilium/security/advisories/GHSA-h45q-4qc4-8hhg","https://github.com/TriliumNext/Trilium/commit/c06939448bcc2879fc3c4d328ff7dc63ed6b5009","https://github.com/TriliumNext/Trilium/releases/tag/v0.103.0"],"weaknesses":["CWE-79","CWE-83","CWE-693"],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/45xxx/CVE-2026-45733.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-45733","state":"PUBLISHED","datePublished":"2026-08-18T15:13:16.946Z","dateUpdated":"2026-08-18T15:33:41.704Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-05-13T05:51:48.667Z"},"containers":{"cna":{"title":"Trilium: Stored XSS in note icon rendering leads to Remote Code Execution in Electron desktop app","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"TriliumNext","product":"Trilium","versions":[{"version":"< 0.103.0","status":"affected"}]}],"references":[{"url":"https://github.com/TriliumNext/Trilium/security/advisories/GHSA-h45q-4qc4-8hhg","name":"https://github.com/TriliumNext/Trilium/security/advisories/GHSA-h45q-4qc4-8hhg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/TriliumNext/Trilium/commit/c06939448bcc2879fc3c4d328ff7dc63ed6b5009","name":"https://github.com/TriliumNext/Trilium/commit/c06939448bcc2879fc3c4d328ff7dc63ed6b5009","tags":["x_refsource_MISC"]},{"url":"https://github.com/TriliumNext/Trilium/releases/tag/v0.103.0","name":"https://github.com/TriliumNext/Trilium/releases/tag/v0.103.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":8.3,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-83","lang":"en","description":"CWE-83: Improper Neutralization of Script in Attributes in a Web Page","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-693","lang":"en","description":"CWE-693: Protection Mechanism Failure","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-08-18T15:13:16.946Z"},"source":{"advisory":"GHSA-h45q-4qc4-8hhg","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/TriliumNext/Trilium/security/advisories/GHSA-h45q-4qc4-8hhg","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-18T15:32:57.681431Z","id":"CVE-2026-45733","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-18T15:33:41.704Z"}}]}}}