CVE-2026-31876: Notesnook has Stored XSS via unsanitized Twitter/X embed URL in editor (`tweetToEmbed`)

Published Mar 11, 2026
·
Updated

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.

Affected Software

4 affected components
Notesnook Notesnook<3.3.9
Streetwriters Notesnook Desktop<3.3.9
Streetwriters Notesnook Mobile Android<3.3.15
Streetwriters Notesnook Mobile Iphone Os<3.3.15

Event History

Mar 11, 2026
CVE Published
via MITRE·06:17 PM
Data Sourced
via MITRE·06:17 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 29, 58178
Event
via FIRST·02:04 PM

Frequently Asked Questions

1

What is the severity of CVE-2026-31876?

CVE-2026-31876 is classified as a high severity vulnerability due to the potential for stored cross-site scripting attacks.

2

How do I fix CVE-2026-31876?

To fix CVE-2026-31876, update your Notesnook application to version 3.3.9 or later, where the vulnerability has been patched.

3

What is the impact of CVE-2026-31876?

CVE-2026-31876 can allow attackers to execute arbitrary scripts in the context of a user's session, compromising user data and privacy.

4

Who is affected by CVE-2026-31876?

Users running any version of Notesnook prior to 3.3.9 are affected by CVE-2026-31876.

5

What is the nature of CVE-2026-31876?

CVE-2026-31876 is a Stored XSS vulnerability that arises from unsanitized URLs in the editor embed component of Notesnook.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203