CVE-2023-38506: Cross-site Scripting (XSS) when pasting HTML into the rich text editor in Joplin
Vulnerability summary
CVE-2023-38506 is a high (CVSS 8.2) Cross-site Scripting vulnerability in joplin_project joplin. EPSS estimates a 0.42% chance of exploitation in the next 30 days, higher than 35.4% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 21-06-2024PublishedVulnerability first disclosed.
- 02-08-2024Last modifiedVulnerability information updated.
Description
Joplin is a free, open source note taking and to-do application. A Cross-site Scripting (XSS) vulnerability allows pasting untrusted data into the rich text editor to execute arbitrary code. HTML pasted into the rich text editor is not sanitized (or not sanitized properly). As such, the `onload` attribute of pasted images can execute arbitrary code. Because the TinyMCE editor frame does not use the `sandbox` attribute, such scripts can access NodeJS's `require` through the `top` variable. From this, an attacker can run arbitrary commands. This issue has been addressed in version 2.12.10 and users are advised to upgrade. There are no known workarounds for this vulnerability.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:NDiffers
EPSS trend
Probability
0.42%
Chance of exploitation in the next 30 days
Percentile
35%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.42% on 22-09-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundJoplin
Maturity: poc
Weaknesses
CWE · root causeAffected systems
2 vendors · 2 products
References
1 links- github.com/laurent22/joplin/security/advisories/GHSA-m59c-9rrj-c399X Refsource CONFIRMExploitVendor Advisory