CVE-2026-42090

Notesnook: RCE via stored XSS in note export rendering

Published May 4, 2026 CVSS 3.1 · 9.6 Critical EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Notesnook, a privacy‑focused note‑taking application, contains a stored cross‑site scripting flaw in the export flow. Exported note fields such as title, headline, and content are inserted into an HTML template without escaping. When the note is later exported to PDF, Notesnook renders that HTML in an unsandboxed, same‑origin iframe using iframe.srcdoc. In desktop versions built with Electron, nodeIntegration is enabled and contextIsolation is disabled, allowing injected script to run with full Node.js privileges and thus achieving remote code execution on the victim’s machine.

Affected Systems

The vulnerability affects Streetwriters Notesnook Web and Desktop releases before version 3.3.15 and iOS/Android releases before version 3.3.20. Any user running these versions and exporting notes that contain attacker‑supplied JavaScript is at risk.

Risk and Exploitability

The flaw carries a CVSS score of 9.6, indicating critical severity. No EPSS data is available, and the issue is not listed in CISA’s KEV catalog. The attack requires the ability to create or influence a note that will be exported; this requirement is inferred from the description of the export flow. Because the injected payload is stored and executed locally, the exploitation probability is high for users who export notes containing malicious content, making this a serious local vulnerability.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Notesnook Web/Desktop to version 3.3.15 or later.
  • Upgrade Notesnook iOS/Android to version 3.3.20 or later.
  • Avoid exporting notes that contain untrusted or unsanitized HTML until patches are applied.

Generated by OpenCVE AI on May 4, 2026 at 18:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Streetwriters notesnook Desktop
Streetwriters notesnook Mobile
CPEs cpe:2.3:a:streetwriters:notesnook_desktop:*:*:*:*:*:*:*:*
cpe:2.3:a:streetwriters:notesnook_mobile:*:*:*:*:*:android:*:*
cpe:2.3:a:streetwriters:notesnook_mobile:*:*:*:*:*:iphone_os:*:*
Vendors & Products Streetwriters notesnook Desktop
Streetwriters notesnook Mobile
Type Values Removed Values Added
First Time appeared Streetwriters
Streetwriters notesnook
Vendors & Products Streetwriters
Streetwriters notesnook
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Notesnook: RCE via stored XSS in note export rendering
Weaknesses CWE-79
CWE-94
References
Metrics cvssV3_1

{'score': 9.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 5, 2026, 3:56 AM
Reserved
Apr 23, 2026, 7:17 PM
Status
Analyzed
Published
May 4, 2026, 5:16 PM
Modified
Oct 26, 2026, 7:10 PM