CVE-2022-45598: Joplin Desktop App cross-site scripting

CVE-2022-45598 · Severity: low · CVSS 3.1 · Published 2023-01-31

Joplin Desktop App is a note-taking and organization application used for managing personal and business information. A cross-site scripting (XSS) vulnerability in versions before 2.9.17 allows attackers to execute arbitrary code by crafting specially malicious input that bypasses sanitization, potentially compromising user data and system security.

Technologies: joplin (npm). Vendors: npm.

Quick answers

Is CVE-2022-45598 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2022-45598 being exploited in the wild.
How severe is CVE-2022-45598?
Low severity, with a CVSS score of 3.1, published 31 January 2023.
Which products and versions are affected?
joplin (npm) SEMVER:introduced=0,fixed=2.9.17.
Is there a fix for CVE-2022-45598?
Yes. joplin (npm): upgrade to 2.9.17 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2022-45598 attacked?
It is attacked over the network, in a web application.
Am I affected by CVE-2022-45598?
Check whether you run joplin (npm) 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.

How to fix

  • joplin (npm): upgrade to 2.9.17 or later
    npm install joplin@2.9.17

Technical details

A cross-site scripting (CWE-79) vulnerability exists in Joplin Desktop App's markdown rendering component due to improper sanitization of user-supplied strings. The vulnerability is triggered when a specially crafted string is passed to the renderer, allowing an attacker to inject and execute arbitrary JavaScript code. The attack requires user interaction (e.g., opening a malicious note) and network access is not required. An attacker can execute arbitrary code in the context of the Joplin application, potentially stealing notes, modifying data, or compromising the host system. The vulnerability was fixed in version 2.9.17 via commit a2de167, which improved input sanitization in the MdToHtml renderer.

Affected products

  • Joplin Desktop App before 2.9.17

Identifiers

  • CVE-2022-45598
  • GHSA-h6c2-879r-jffh

Timeline

  • 2023-01-31: disclosed
  • 2.9.17: patched

References

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