Medium severity6.1NVD Advisory· Published Nov 17, 2026· Updated Nov 18, 2026
CVE-2026-130866
CVE-2026-130866
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
1- Range: <7.2.7
Patches
Vulnerability mechanics
References
5- github.com/interaapps/pastefy/blob/7.2.6/frontend/src/components/previews/MermaidViewer.vuenvd
- github.com/interaapps/pastefy/commit/caf35d8f279e2e1386a066753f2d644a0ba79507nvd
- github.com/interaapps/pastefy/issues/142nvd
- github.com/interaapps/pastefy/releases/tag/7.2.7nvd
- www.vulncheck.com/advisories/pastefy-7.2.1-before-7.2.7-stored-xss-via-mermaid-init-directivenvd
News mentions
0No linked articles in our index yet.