Skip to content

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

MediumCVSS 5.4 EPSS 0.21%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
streetwriters notesnook desktop < 3.3.9 3.3.9 Fixed
streetwriters notesnook mobile < 3.3.15 3.3.15 Fixed
streetwriters notesnook = < 3.3.9 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
streetwriters notesnook = < 3.3.9 No fix listed
streetwriters notesnook desktop < 3.3.9 3.3.9
streetwriters notesnook mobile < 3.3.15 3.3.15

References