CVE-2022-35131: Joplin arbitrary code execution via node title injection

CVE-2022-35131 · Severity: low · CVSS 3.1 · Published 2022-07-26

Joplin is a note-taking and task management application used to organize and store personal and work information. An attacker can execute arbitrary commands on a user's system by crafting a malicious payload in a note title, which the application processes unsafely. This could allow an attacker to compromise the user's system, steal sensitive data from notes and files, or use the compromised system for further attacks.

Technologies: Joplin. Vendors: Joplin.

Quick answers

Is CVE-2022-35131 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2022-35131 being exploited in the wild.
How severe is CVE-2022-35131?
Low severity, with a CVSS score of 3.1, published 26 July 2022.
Which products and versions are affected?
Joplin before 2.9.1.
Is there a fix for CVE-2022-35131?
A patch was published on 2022-07-29: Fixed in version 2.9.1 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2022-35131 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2022-35131?
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

The vulnerability is a cross-site scripting (XSS) flaw in the GotoAnything dialog component that fails to properly sanitize user input in node titles before rendering. An attacker can inject malicious code into note titles that, when processed by the application, executes arbitrary commands. The attack requires user interaction (the victim must use the GotoAnything dialog to trigger the payload) and affects Joplin versions prior to 2.9.1. The fix involves proper HTML entity encoding in the string-utils.js component to prevent code injection.

Affected products

  • Joplin Joplin before 2.9.1

Identifiers

  • CVE-2022-35131
  • GHSA-ww2v-frv5-pj5x

Timeline

  • 2022-07-26: disclosed
  • 2022-07-29: patched: Fixed in version 2.9.1

References

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