Vulnerability · Published Nov 14, 2024 · Assigned by GitHub_M

CVE-2024-49362Remote Code Execution on click of <a> Link in markdown preview

High 7.7

In plain English

A high-severity code injection in joplin from laurent22. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 65% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.7High
Exploit odds (30 days)1.1%top 35.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

Joplin is a free, open source note taking and to-do application. Joplin-desktop has a vulnerability that leads to remote code execution (RCE) when a user clicks on an <a> link within untrusted notes. The issue arises due to insufficient sanitization of <a> tag attributes introduced by the Mermaid. This vulnerability allows the execution of untrusted HTML content within the Electron window, which has full access to Node.js APIs, enabling arbitrary shell command execution.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmjoplin3.1.0GHSA-hff8-hjwv-j9q7

Affected products (as reported)

VendorProductVersions
laurent22 joplin < 3.1

Weakness: CWE-94 · Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:L

References