CVE-2026-31876: streetwriters notesnook · Cross-site Scripting
Affects streetwriters notesnookSource CVE Database V5
Not known to be exploited · CVSS 5.4 Medium : upgrade to 3.3.9 when convenient.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 7% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.3.9
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 11 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade notesnook and streetwriters/notesnook to 3.3.9.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| streetwritersnotesnook | Affected
| Fixed in
|
GitHubstreetwriters/notesnookpkg:github/streetwriters/notesnookOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2026-31876, organizations should immediately upgrade Notesnook to version 3.3.9 or later, where the vulnerability has been fixed. Beyond patching, administrators should audit existing notes for suspicious embedded Twitter/X URLs that could contain malicious payloads and remove or sanitize them. Implement strict input validation and output encoding for any user-supplied content, especially when embedding third-party URLs or HTML content. Employ Content Security Policy (CSP) headers to restrict the execution of untrusted scripts and reduce the impact of potential XSS attacks. Educate users about the risks of embedding untrusted content and encourage cautious sharing of notes. Monitor application logs for unusual activity related to embed content creation or modification. For environments with sensitive data, consider additional application-layer protections such as web application firewalls (WAFs) configured to detect and block XSS payloads. Finally, enforce the principle of least privilege to limit the number of users who can add or edit embedded content, reducing the risk of malicious input insertion.
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.