{"id":"CVE-2026-31876","aliases":["CVE-2026-31876"],"related":[],"kind":"vulnerability","state":"published","title":"Notesnook has Stored XSS via unsanitized Twitter/X embed URL in editor (`tweetToEmbed`)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Notesnook es una aplicación para tomar notas centrada en la privacidad del usuario y la facilidad de uso. Previo a la 3.3.9, existía una vulnerabilidad de cross-site scripting (XSS) almacenado en el componente de incrustación del editor de Notesnook al renderizar URLs de incrustación de Twitter/X. La función tweetToEmbed() en component.tsx interpolaba la URL proporcionada por el usuario directamente en una cadena HTML sin escapar, la cual se asignaba luego al atributo srcdoc de un . Esta vulnerabilidad está corregida en la versión 3.3.9.","source":"nvd"}],"published":"2026-03-11T18:17:08.142Z","modified":"2026-06-17T10:34:40.833Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 3.3.9","status":"affected"}],"vendor":"streetwriters","product":"notesnook","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"3.3.9"}],"vendor":"streetwriters","product":"notesnook_desktop","cpe":"cpe:2.3:a:streetwriters:notesnook_desktop:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"3.3.15"},{"status":"affected","fixed":"3.3.15"}],"vendor":"streetwriters","product":"notesnook_mobile","cpe":"cpe:2.3:a:streetwriters:notesnook_mobile:*:*:*:*:*:android:*:*","source":"nvd"}],"references":[{"url":"https://github.com/streetwriters/notesnook/security/advisories/GHSA-jprx-2w2h-4rh5","tags":["vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/streetwriters/notesnook/commit/e87f5e5f899f45df28d7c0f33f15e9178d1fbcb7","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-03-12T20:08:06.045Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31876","url":"https://www.cve.org/CVERecord?id=CVE-2026-31876","licence":"CVE Terms of Use","modified":"2026-03-12T20:08:12.048Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31876","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31876","licence":"Public domain","modified":"2026-06-17T10:34:40.833Z"}],"updatedAt":"2026-11-25T22:59:15.765Z","epss":{"score":0.00205,"percentile":0.11038,"date":"2026-12-01T12:00:22.000Z"}}