CVE-2026-130866
published medium CVSS 4.0 · 5.3Pastefy 7.2.1 before 7.2.7 Stored XSS via Mermaid Init Directive
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| InteraApps | — | Pastefy7.2.1 to < 7.2.7 · Other versions: unaffected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.1 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| InteraApps | Pastefy | 7.2.1 to < 7.2.7 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
5- https://github.com/interaapps/pastefy/blob/7.2.6/frontend/src/components/previews/MermaidViewer.vue#L28-L80
- https://github.com/interaapps/pastefy/commit/caf35d8f279e2e1386a066753f2d644a0ba79507
- https://github.com/interaapps/pastefy/issues/142
- Pastefy 7.2.7 Release Notes https://github.com/interaapps/pastefy/releases/tag/7.2.7
- VulnCheck Advisory: Pastefy 7.2.1 before 7.2.7 Stored XSS via Mermaid Init Directive https://www.vulncheck.com/advisories/pastefy-7.2.1-before-7.2.7-stored-xss-via-mermaid-init-directive
Provider assertions
2VulnCheck · cna
Pastefy 7.2.1 before 7.2.7 Stored XSS via Mermaid Init Directive
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- febc3bccd726ad5ab7c4d94dd8ee4c64ab14031df9f413f85c77625f8a292409
- Ingested
- 18 Nov 2026, 17:01:37 UTC
- Source record
- Official CVE record