CVE-2026-130866
Medium 5.3No known exploitationFix availablePastefy 7.2.1 before 7.2.7 Stored XSS via Mermaid Init Directive
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 21% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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
Patching and mitigation
- Patch status
- Fix available (source: CVE record (VulnCheck))
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| InteraApps | Pastefy | from 7.2.1 before 7.2.7 | 7.2.7 | CVE Program |
Timeline
Disclosure
CVE record published by VulnCheck
Source: CVE Program (opens in a new tab)
Patch
Fix documented by CVE record (VulnCheck)
Vendor guidance and references
- https://github.com/interaapps/pastefy/commit/caf35d8f279e2e1386a066753f2d644a0ba79507 (opens in a new tab)patch
- Pastefy 7.2.7 Release Notes (opens in a new tab)release-notes
- https://github.com/interaapps/pastefy/blob/7.2.6/frontend/src/components/previews/MermaidViewer.vue (opens in a new tab)technical-description
- https://github.com/interaapps/pastefy/issues/142 (opens in a new tab)issue-tracking
- VulnCheck Advisory: Pastefy 7.2.1 before 7.2.7 Stored XSS via Mermaid Init Directive (opens in a new tab)third-party-advisory