# CVE-2023-38506: Cross-site Scripting (XSS) when pasting HTML into the rich text editor in Joplin

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-06-21T19:43:24.161Z
- Modified: 2026-06-17T06:10:36.447Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- laurent22 joplin: < 2.12.10
- joplin_project joplin: before 2.12.10

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:L`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/laurent22/joplin/security/advisories/GHSA-m59c-9rrj-c399> (exploit, vendor-advisory)

## Sources

- CVE List: [CVE-2023-38506](https://www.cve.org/CVERecord?id=CVE-2023-38506), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2023-38506](https://nvd.nist.gov/vuln/detail/CVE-2023-38506), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-38506 · Whole record: https://cve.day/CVE-2023-38506.json · Rebuilt by cve.day 2026-11-25T22:58:34.176Z
