CVE-2026-130866
Pastefy 7.2.1 before 7.2.7 contains a stored cross-site scripting …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/interaapps/pastefy/blob/7.2.6/frontend/src/components/previews/MermaidViewer.vu
- github.com/interaapps/pastefy/commit/caf35d8f279e2e1386a066753f2d644a0ba79507
- github.com/interaapps/pastefy/issues/142
- github.com/interaapps/pastefy/releases/tag/7.2.7
- www.vulncheck.com/advisories/pastefy-7.2.1-before-7.2.7-stored-xss-via-mermaid-init-direct
- nvd.nist.gov/vuln/detail/CVE-2026-130866
- cve.org/CVERecord?id=CVE-2026-130866
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.