Pastefy 7.2.1 before 7.2.7 Stored XSS via Mermaid Init Directive
- State
- Published
- Severity
- 5.3 Medium
- Published
- Nov 17, 2026
- Updated
- Nov 18, 2026
- Reserved
- Nov 17, 2026
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.
| Product | Versions |
|---|---|
| Pastefy InteraApps | 7.2.1 to before 7.2.7 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.3 Medium | VulnCheck | |
| 3.1 | 6.1 Medium | VulnCheck |
Weaknesses
- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
- https://github.com/interaapps/pastefy/issues/142Issue Tracker
- https://github.com/interaapps/pastefy/commit/caf35d8f279e2e1386a066753f2d644a0ba79507Patch
- Pastefy 7.2.7 Release NotesRelease Notes
- https://github.com/interaapps/pastefy/blob/7.2.6/frontend/src/components/previews/MermaidViewer.vue#L28-L80Technical Details
- VulnCheck Advisory: Pastefy 7.2.1 before 7.2.7 Stored XSS via Mermaid Init DirectiveThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.