Description
Notesnook is a note-taking app focused on user privacy & ease of use. Prior to 3.3.9, a Stored Cross-Site Scripting (XSS) vulnerability existed in Notesnook's editor embed component when rendering Twitter/X embed URLs. The tweetToEmbed() function in component.tsx interpolated the user-supplied URL directly into an HTML string without escaping, which was then assigned to the srcdoc attribute of an <iframe>. This vulnerability is fixed in 3.3.9.
Published: 2026-03-11
Score: 5.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored XSS
Action: Patch
AI Analysis

Impact

Prior to version 3.3.9, Notesnook’s editor allowed users to embed Twitter/X URLs directly into a note. The tweetToEmbed() function in component.tsx concatenated the supplied URL into an HTML string that was then assigned to the srcdoc attribute of an iframe. Because the URL was not sanitized, an attacker could inject malicious JavaScript into that string. When the note is later viewed, the embedded script runs in the victim’s browser context, which can lead to session hijacking, credential theft, or other arbitrary code execution. This flaw is a classic stored Cross‑Site Scripting vulnerability classified as CWE‑79.

Affected Systems

All releases of the Notesnook desktop, Android, and iPhone OS applications issued before version 3.3.9 are affected. The Common Platform Enumeration strings confirm coverage of the desktop, Android, and iOS builds under the streetwriters:notesnook vendor. No specific sub‑versions are listed, so the assumption is that every build up to but not including 3.3.9 contains the flaw.

Risk and Exploitability

The CVSS score of 5.4 indicates moderate severity, and the EPSS score of less than 1% suggests a low current probability of exploitation. The vulnerability is not present in the CISA KEV catalog. Exploitation requires an attacker to create or inject a malicious note including the crafted Twitter/X embed URL. When any user, including the note owner, opens that note, the injected code executes within the Notesnook application. The likely attack vector is inferred to be Local XSS within the application environment; this inference is drawn from the description of the stored nature of the flaw and the requirement that the user open the compromised note.

Generated by OpenCVE AI on March 17, 2026 at 17:52 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Notesnook to version 3.3.9 or later
  • Check the vendor’s website or GitHub releases for additional security updates

Generated by OpenCVE AI on March 17, 2026 at 17:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 17 Mar 2026 16:00:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:streetwriters:notesnook_mobile:*:*:*:*:*:ios:*:* cpe:2.3:a:streetwriters:notesnook_mobile:*:*:*:*:*:iphone_os:*:*

Mon, 16 Mar 2026 21:00:00 +0000

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:*:*:*:*:*:ios:*:*
Vendors & Products Streetwriters notesnook Desktop
Streetwriters notesnook Mobile

Thu, 12 Mar 2026 20:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 12 Mar 2026 10:15:00 +0000

Type Values Removed Values Added
First Time appeared Streetwriters
Streetwriters notesnook
Vendors & Products Streetwriters
Streetwriters notesnook

Wed, 11 Mar 2026 18:45:00 +0000

Type Values Removed Values Added
Description Notesnook is a note-taking app focused on user privacy & ease of use. Prior to 3.3.9, a Stored Cross-Site Scripting (XSS) vulnerability existed in Notesnook's editor embed component when rendering Twitter/X embed URLs. The tweetToEmbed() function in component.tsx interpolated the user-supplied URL directly into an HTML string without escaping, which was then assigned to the srcdoc attribute of an <iframe>. This vulnerability is fixed in 3.3.9.
Title Notesnook has Stored XSS via unsanitized Twitter/X embed URL in editor (`tweetToEmbed`)
Weaknesses CWE-79
References
Metrics cvssV3_1

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


Subscriptions

Streetwriters Notesnook Notesnook Desktop Notesnook Mobile
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-03-12T20:08:12.048Z

Reserved: 2026-03-09T19:02:25.014Z

Link: CVE-2026-31876

cve-icon Vulnrichment

Updated: 2026-03-12T20:08:09.400Z

cve-icon NVD

Status : Analyzed

Published: 2026-03-11T19:16:04.140

Modified: 2026-03-17T15:59:17.190

Link: CVE-2026-31876

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-03-20T15:29:57Z

Weaknesses