Skip to main content

Pastefy

1 CVEs product

Monthly

CVE-2026-130866 Nov 17, 19:47 MEDIUM PATCH This Month

Stored cross-site scripting in Pastefy 7.2.1 through 7.2.6 lets an unauthenticated attacker publish a Mermaid or Markdown paste that smuggles a %%{init}%% directive past the preview renderer, flipping Mermaid into 'loose' security mode with a weakened DOMPurify configuration so injected markup runs in the viewer's browser and can exfiltrate API session keys to take over accounts. The MermaidViewer.vue component parses the leading directive and forwards it to mermaid.mermaidAPI.updateSiteConfig(), so the payload is persisted server-side and fires whenever someone opens the paste; the practical limiting factor is that a victim, ideally a signed-in user whose key is worth stealing, must actually view the paste. Severity is assessed as mid-tier (CVSS 5.3, assessed 3.1 vector AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) because the attack chain depends on that user interaction; no public exploit code has been identified at time of analysis and the issue is not in CISA KEV, but the vendor has published a fix in 7.2.7.

XSS Pastefy
NVD GitHub
CVSS 4.0
5.3
EPSS
0.4%
EPSS 0% CVSS 5.3
MEDIUM PATCH This Month

Stored cross-site scripting in Pastefy 7.2.1 through 7.2.6 lets an unauthenticated attacker publish a Mermaid or Markdown paste that smuggles a %%{init}%% directive past the preview renderer, flipping Mermaid into 'loose' security mode with a weakened DOMPurify configuration so injected markup runs in the viewer's browser and can exfiltrate API session keys to take over accounts. The MermaidViewer.vue component parses the leading directive and forwards it to mermaid.mermaidAPI.updateSiteConfig(), so the payload is persisted server-side and fires whenever someone opens the paste; the practical limiting factor is that a victim, ideally a signed-in user whose key is worth stealing, must actually view the paste. Severity is assessed as mid-tier (CVSS 5.3, assessed 3.1 vector AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) because the attack chain depends on that user interaction; no public exploit code has been identified at time of analysis and the issue is not in CISA KEV, but the vendor has published a fix in 7.2.7.

XSS Pastefy
NVD GitHub

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy