CVE-2023-37898
CVE-2023-37898 is a high-severity vulnerability in Joplin Project Joplin with a CVSS 3.x base score of 8.2. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-79.
Key facts
- Severity: High (CVSS 3.x base score 8.2)
- EPSS exploit prediction: 0% (34th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2023-41769
- Weakness: CWE-79
- Affected product: Joplin Project Joplin
- Published:
- Last modified:
Description
Joplin is a free, open source note taking and to-do application. A Cross-site Scripting (XSS) vulnerability allows an untrusted note opened in safe mode to execute arbitrary code. `packages/renderer/MarkupToHtml.ts` renders note content in safe mode by surrounding it with <pre> and </pre>, without escaping any interior HTML tags. Thus, an attacker can create a note that closes the opening <pre> tag, then includes HTML that runs JavaScript. Because the rendered markdown iframe has the same origin as the toplevel document and is not sandboxed, any scripts running in the preview iframe can access the top variable and, thus, access the toplevel NodeJS `require` function. `require` can then be used to import modules like fs or child_process and run arbitrary commands. This issue has been addressed in version 2.12.9 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
Frequently asked questions
- What is CVE-2023-37898?
- Joplin is a free, open source note taking and to-do application. A Cross-site Scripting (XSS) vulnerability allows an untrusted note opened in safe mode to execute arbitrary code. `packages/renderer/MarkupToHtml.ts` renders note content in safe mode by surrounding it with <pre> and </pre>, without escaping any interior HTML tags. Thus, an attacker can create a note that closes the opening <pre> tag, then includes HTML that runs JavaScript. Because the rendered markdown iframe has the same origin as the toplevel document and is not sandboxed, any scripts running in the preview iframe can access the top variable and, thus, access the toplevel NodeJS `require` function. `require` can then be used to import modules like fs or child_process and run arbitrary commands. This issue has been addressed in version 2.12.9 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
- How severe is CVE-2023-37898?
- CVE-2023-37898 has a CVSS 3.x base score of 8.2, rated high severity. It is exploitable over network with low attack complexity, requires low privileges and user interaction. Impact on confidentiality is high, integrity low, and availability low.
- Is CVE-2023-37898 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (34th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2023-37898?
- CVE-2023-37898 affects Joplin Project Joplin. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2023-37898?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2023-37898 have an EU (EUVD) identifier?
- Yes. CVE-2023-37898 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2023-41769.
- When was CVE-2023-37898 published?
- CVE-2023-37898 was published on 2024-06-21 and last updated on 2026-06-17.
References
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#sandbox
- https://github.com/laurent22/joplin/security/advisories/GHSA-hjmq-3qh4-g2r8
Affected products (1)
- cpe:2.3:a:joplin_project:joplin:*:*:*:*:*:-:*:*
More vulnerabilities in Joplin Project Joplin
- CVE-2022-23340 — Critical (CVSS 9.8): Joplin 2.6.10 allows remote attackers to execute system commands through malicious code in user search results.
- CVE-2024-40643 — Critical (CVSS 9.6): Joplin is a free, open source note taking and to-do application. Joplin fails to take into account that "<" followed by…
- CVE-2023-45673 — High (CVSS 8.9): Joplin is a free, open source note taking and to-do application. A remote code execution (RCE) vulnerability in…
- CVE-2025-27134 — High (CVSS 8.8): Joplin is a free, open source note taking and to-do application, which can handle a large number of notes organised…
- CVE-2023-39517 — High (CVSS 8.2): Joplin is a free, open source note taking and to-do application. A Cross site scripting (XSS) vulnerability in affected…
- CVE-2023-38506 — High (CVSS 8.2): Joplin is a free, open source note taking and to-do application. A Cross-site Scripting (XSS) vulnerability allows…
All CVEs affecting Joplin Project Joplin →
Other CWE-79 (Cross-site Scripting (XSS)) vulnerabilities
- CVE-2025-49410 — Critical (CVSS 10.0): Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Imran Emu TC…
- CVE-2024-47875 — Critical (CVSS 10.0): DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMpurify was vulnerable to…
- CVE-2024-6886 — Critical (CVSS 10.0): Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea…
- CVE-2023-45144 — Critical (CVSS 10.0): com.xwiki.identity-oauth:identity-oauth-ui is a package to aid in building identity and service providers based on…
- CVE-2023-45138 — Critical (CVSS 10.0): Change Request is an pplication allowing users to request changes on a wiki without publishing the changes directly.…
- CVE-2022-4361 — Critical (CVSS 10.0): Keycloak, an open-source identity and access management solution, has a cross-site scripting (XSS) vulnerability in the…
Browse all CWE-79 (Cross-site Scripting (XSS)) vulnerabilities →