{"id":"CVE-2026-31876","published":"2026-03-11T18:17:08Z","modified":"2026-03-12T20:08:12Z","title":"Notesnook has Stored XSS via unsanitized Twitter/X embed URL in editor (`tweetToEmbed`)","vendor":"streetwriters","product":"notesnook","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00286,"percentile":0.13785,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/streetwriters/notesnook/security/advisories/GHSA-jprx-2w2h-4rh5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/streetwriters/notesnook/commit/e87f5e5f899f45df28d7c0f33f15e9178d1fbcb7","tags":["x_refsource_MISC"]}],"priority":{"score":6.5,"factors":[{"name":"EPSS percentile","points":2.76},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"streetwriters","affectedVersions":[{"vendor":"streetwriters","product":"notesnook","versions":["< 3.3.9"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-12T20:08:06.045805Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-11286","exploited":false,"provenance":"source"}}