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.
{
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31876.json",
"cwe_ids": [
"CWE-79"
]
}{
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "3.3.9"
},
{
"fixed": "3.3.15"
}
],
"source": [
"CPE_RANGE",
"REFERENCES"
],
"cpe": [
"cpe:2.3:a:streetwriters:notesnook_desktop:*:*:*:*:*:*:*:*",
"cpe:2.3:a:streetwriters:notesnook_mobile:*:*:*:*:*:android:*:*",
"cpe:2.3:a:streetwriters:notesnook_mobile:*:*:*:*:*:iphone_os:*:*"
]
}