Quick answers
- Is CVE-2022-23340 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2022-23340 being exploited in the wild.
- How severe is CVE-2022-23340?
- Low severity, with a CVSS score of 3.1, published 9 February 2022.
- Which products and versions are affected?
- Joplin before 2.7.1.
- Is there a fix for CVE-2022-23340?
- A patch was published on 2022-02-09: Fixed in version 2.7.1 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2022-23340 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2022-23340?
- Check whether you run Joplin at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
Joplin is vulnerable to code injection (CWE-94) in its search functionality. When a user performs a search via Ctrl+P, malicious HTML/JavaScript payloads embedded in note content are rendered without proper sanitization, allowing arbitrary code execution in the Electron context. The attack requires no authentication or user interaction beyond normal search usage. An attacker can execute system commands (e.g., `calc.exe` on Windows) by crafting a note containing an img tag with onerror handler that calls `require('child_process').exec()`. The vulnerability was fixed in version 2.7.1.
Affected products
- Joplin Joplin before 2.7.1
Identifiers
- CVE-2022-23340
- GHSA-8478-53pv-jxvm
Timeline
- 2022-01-11: disclosed: Vulnerability reported on GitHub
- 2022-02-09: disclosed: GHSA advisory published
- 2022-02-09: patched: Fixed in version 2.7.1