CVE-2024-49362: Remote Code Execution on click of <a> Link in markdown preview
Vulnerability summary
CVE-2024-49362 is a critical (CVSS 9.6) Code Injection vulnerability in joplin_project joplin. EPSS estimates a 1.03% chance of exploitation in the next 30 days, higher than 63.4% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 14-11-2024PublishedVulnerability first disclosed.
- 14-11-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- CVE.orgCNA7.7HighCVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:LDiffers
- OSV · NpmEcosystem advisory · calculated7.7HighCVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:LDiffers
EPSS trend
Probability
1.03%
Chance of exploitation in the next 30 days
Percentile
63%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.03% on 22-09-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundJoplin
Maturity: poc
Weaknesses
CWE · root cause- CWE-94Improper Control of Generation of Code ('Code Injection')The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
- CWE-79Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Affected systems
3 vendors · 3 products
References
3 links- github.com/laurent22/joplin/security/advisories/GHSA-hff8-hjwv-j9q7X Refsource CONFIRMWEBExploitVendor Advisory
- github.com/laurent22/joplinPACKAGE