Pastefy 7.2.1 before 7.2.7 contains a stored cross-site scripting vulnerability in MermaidViewer.vue that passes attacker-supplied %%{init}%% directives to mermaid.mermaidAPI.updateSiteConfig(). Unauthenticated attackers can create Mermaid or Markdown pastes setting securityLevel to loose with a permissive dompurifyConfig to steal viewers' API session keys and act on their accounts.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-79"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/130xxx/CVE-2026-130866.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "7.2.1"
},
{
"fixed": "7.2.7"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "caf35d8f279e2e1386a066753f2d644a0ba79507"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "7.2.7",
"range": [
{
"fixed": "caf35d8f279e2e1386a066753f2d644a0ba79507"
}
],
"source": "REFERENCES_TAG"
}
]
}