Skip to main content
VulnerabilityPublished Updated

CVE-2026-31876: streetwriters notesnook · Cross-site Scripting

Affects streetwriters notesnookSource CVE Database V5

0
Compare

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

CVSS 3.1 base score
5.4Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 11 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
streetwritersnotesnookAffected
  • <3.3.9
Fixed in
  • 3.3.9
GitHubstreetwriters/notesnookpkg:github/streetwriters/notesnookOther threatsAffected
  • <3.3.9
Fixed in
  • 3.3.9

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.

References

Community reviews

Loading reviews…