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