CVE-2026-31876 Details
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.
A stored cross-site scripting vulnerability has been identified in Notesnook's editor embed component, affecting versions prior to 3.3.9 for web and desktop, and versions prior to 3.3.15 for Android and iOS. The issue arises when rendering Twitter/X embed URLs, as the 'tweetToEmbed()' function in 'component.tsx' directly interpolates user-supplied URLs into an HTML string without proper escaping. This unescaped HTML is then assigned to the 'srcdoc' attribute of an <iframe>, allowing for the execution of injected scripts in the victim's browser, particularly in environments in which Content Security Policy (CSP) is absent or misconfigured.
Users can update to Notesnook version 3.3.9 or later for web and desktop, or version 3.3.15 or later for Android and iOS.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 12, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| streetwriters notesnook desktop | < 3.3.9 |
CPE
Remediation
| |
| streetwriters notesnook mobile | < 3.3.15 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 17, 2026 | Reanalysis | [email protected] |
| Mar 16, 2026 | Initial Analysis | [email protected] |
| Mar 11, 2026 | New CVE Received | [email protected] |