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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | joplin | 3.1.0 | GHSA-hff8-hjwv-j9q7 |
Affected products (as reported)
Weakness: CWE-94 · Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:L
References
- https://github.com/laurent22/joplin/security/advisories/GHSA-hff8-hjwv-j9q7 x_refsource_CONFIRM