CVE-2022-23340: Joplin code injection remote code execution

CVE-2022-23340 · Severity: low · CVSS 3.1 · Published 2022-02-09

Joplin is a popular open-source note-taking and task management application. A vulnerability in versions before 2.7.1 allows attackers to inject malicious code into search results that executes arbitrary system commands when a user searches, potentially compromising the user's computer and all local data stored in the application.

Technologies: Joplin. Vendors: Joplin.

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

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.