CVE-2026-130866 Pastefy 7.2.1 before 7.2.7 Stored XSS via Mermaid Init Directive
MediumCVSS 5.3
EPSS 0.28%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| interaapps/pastefy | >= 7.2.1, < 7.2.7 | 7.2.7 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| interaapps/pastefy | >= 7.2.1, < 7.2.7 | 7.2.7 |
References
- github.com issue-tracking
- github.com patch
- Pastefy 7.2.7 Release Notes release-notes
- github.com technical-description
- VulnCheck Advisory: Pastefy 7.2.1 before 7.2.7 Stored XSS via Mermaid Init Directive third-party-advisory
- ENISA EUVD EUVD-2026-127235 third-party-advisory