Cross-site scripting in Joplin Desktop - CVE-2023-37898

 

Cross-site scripting in Joplin Desktop - CVE-2023-37898

Published: June 21, 2024 / Updated: May 16, 2026


Vulnerability identifier: #VU131599
CSH Severity: Medium
CVSS v4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2023-37898
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to execute arbitrary code.

The vulnerability exists due to cross-site scripting in packages/renderer/MarkupToHtml.ts when rendering an untrusted note in safe mode. A local user can create a specially crafted note to execute arbitrary code.

User interaction is required to open the crafted note, and exploitation relies on the rendered markdown iframe sharing the same origin as the top-level document without sandboxing.


Affected software

Joplin Desktop

How to mitigate CVE-2023-37898

Install security update from vendor's website.

Joplin Desktop - update to 2.12.9

External References

Related Security Bulletins