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()
Source GCVE Database
Not known to be exploited · CVSS 5.3 Medium : upgrade to 7.2.7 when convenient.
Data as of 17 Nov 2026, 22:49 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 5.3 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 6.1 |
- Patch
- Available – fixed in 7.2.7
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 17 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 17 Nov 2026.
What to do
Upgrade Pastefy to 7.2.7.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| InteraAppsPastefy | Affected
| Fixed in
|
GitHubPastefypkg:github/PastefyOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- nvd.nist.gov/vuln/detail/CVE-2026-130866 (opens in a new tab)
- github.com/interaapps/pastefy/issues/142 (opens in a new tab)
- github.com/interaapps/pastefy/commit/caf35d8f279e2e1386a066753f2d644a0ba79507 (opens in a new tab)
- github.com/interaapps/pastefy/blob/7.2.6/frontend/src/components/previews/MermaidViewer.vue (opens in a new tab)
- github.com/interaapps/pastefy/releases/tag/7.2.7 (opens in a new tab)
- vulncheck.com/advisories/pastefy-7.2.1-before-7.2.7-stored-xss-via-mermaid-init-directive (opens in a new tab)