CVE-2022-40277: Joplin Remote Code Execution

joplin Updated 02 Oct 2025

Summary

01/10/2022
No i
High
7.8

CVE-2022-40277: Joplin Remote Code Execution. Affects joplin versions < 2.8.8. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Joplin is an npm package that provides a note-taking and to-do application with synchronization capabilities. It allows users to create and manage notes, to-do lists, and other related content. The vulnerability in Joplin version 2.8.8 enables an external attacker to execute arbitrary commands remotely on any client that opens a link in a malicious markdown file via Joplin. This vulnerability arises due to the lack of proper validation of the schema/protocol of existing links in the markdown file before passing them to the shell.openExternal function.

Vulnerability Detail

The vulnerability in Joplin version 2.8.8 allows an attacker to execute arbitrary commands remotely on a client machine by exploiting the application's handling of links in markdown files. When a client opens a markdown file containing a malicious link, Joplin does not adequately validate the schema/protocol of the link before passing it to the shell.openExternal function. This oversight enables an attacker to craft a malicious markdown file that, when opened in Joplin, triggers the execution of arbitrary commands on the client machine. The impact of this vulnerability can be severe, as it grants the attacker unauthorized access and control over the victim's system.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can exercise caution when opening markdown files from untrusted sources. It is advisable to avoid opening markdown files that originate from unknown or suspicious sources until the vulnerability has been patched. Additionally, users can consider using alternative note-taking applications that are not affected by this vulnerability until a fix is available for Joplin.

Conclusion

In conclusion, Joplin version 2.8.8 is vulnerable to remote code execution, allowing an attacker to execute arbitrary commands on a client machine. Users should update to the latest version of Joplin to mitigate this vulnerability. Exercise caution when opening markdown files from untrusted sources and consider using alternative note-taking applications until a fix is available. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for joplin →

Share this vulnerability

FAQ

The vulnerability allows an attacker to execute arbitrary commands remotely on a client machine, potentially leading to unauthorized access and control over the victim's system.

The vulnerability affects Joplin version 2.8.8. Earlier versions may also be affected, but specific details are not provided.

To protect yourself, it is recommended to update Joplin to the latest version available, as the maintainers have addressed this vulnerability in subsequent releases.

As a temporary workaround, exercise caution when opening markdown files from untrusted sources and consider using alternative note-taking applications until a fix is available for Joplin.

Related vulnerabilities

Recent vulnerabilities recorded for joplin.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback