XSS in Joplin Project
CVE-2025-25187
Joplin is a free, open source note taking and to-do application, which can handle a large number of notes organised into notebooks. This vulnerability is caused by adding note titles to the document using React's `dangerouslySetInnerHTML`, without first escaping HTML entities. Joplin lacks a Content-Security-Policy with a restrictive `script-src`. This allows arbitrary JavaScript execution via inline `onclick`/`onload` event handlers in unsanitized HTML. Additionally, Joplin's main window is created with `nodeIntegration` set to `true`, allowing arbitrary JavaScript execution to result in arbitrary code execution. Anyone who 1) receives notes from unknown sources and 2) uses <kbd>ctrl</kbd>-<kbd>p</kbd> to search is impacted. This issue has been addressed in version 3.1.24 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.005 (41.3th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 41st percentile — 41.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.005 · newest: 0.005 · change: 0.000
Affected products
- Joplin Project
- Laurent22 Joplin — versions < 3.1.24
Weakness classification (CWE)
References
- github.com/laurent22/joplin/security/advisories/GHSA-9gfv-q6wj-fr3c (Exploit, Vendor Advisory)
- github.com/laurent22/joplin/commit/360ece6f8873ef81afbfb98b25faad696ffccdb6 (Patch)
- developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/scrip… (Product)
- github.com/laurent22/joplin/blob/2fc9bd476b0d9abcddb0a46f615a48333779d225/packa… (Product)
Frequently asked questions
- What is CVE-2025-25187?
- CVE-2025-25187 is a high-severity vulnerability in Joplin Project, classified under Cross-site Scripting. CVSS score: 7.8/10. Published 2025-02-07.
- How severe is CVE-2025-25187?
- High severity. CVSS v3 base score is 7.8 out of 10.