Pastefy
Monthly
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.
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.