CVE-2026-130866 Pastefy 7.2.1 before 7.2.7 Stored XSS via Mermaid Init Directive
- Exploited in the wild
- Not known
- Fix
- 7.2.7
What is CVE-2026-130866?
CVE-2026-130866 is a medium-severity vulnerability in InteraApps Pastefy, published on 17 Nov 2026.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2026-130866?
1 open source package ship an affected version, including interaapps/pastefy.
| Package | Affected | Fixed in |
|---|---|---|
interaapps/pastefy GitHubpkg:github/interaapps/pastefy | From 7.2.1 | 7.2.7 |
How do I fix CVE-2026-130866?
Upgrade interaapps/pastefy to 7.2.7 or later.
Is CVE-2026-130866 being exploited?
There is no known exploitation of CVE-2026-130866 in the wild and no public exploit code.
Sources
Also known as GHSA-2cw3-3983-vw2q.