Technical impact
Pastefy 7.2.1 through 7.2.6 contains a stored cross‑site scripting flaw in MermaidViewer.vue. The application forwards attacker‑supplied %%{init}%% directives to mermaid.mermaidAPI.updateSiteConfig(), causing the browser to execute the injected script when a paste is rendered. Because unauthenticated users can create pastes with the securityLevel set to loose and a permissive DOMPurify configuration, an attacker can inject JavaScript that harvests the viewer’s API session key and therefore impersonate that user on the platform.
Affected Systems
All installations of Pastefy version 7.2.1 up to 7.2.6, deployed by InteraApps, are affected. The vulnerability resides in the frontend component that processes Mermaid diagrams, so any instance exposing the public paste interface and using the default settings is vulnerable.
Risk and Exploitability
The CVSS score of 5.3 indicates a moderate severity, but the absence of an EPSS score and the lack of a KEV listing mean that exploitation activity has not yet been observed publicly. However, the attack vector requires only unauthenticated access to the paste creation endpoint, making it widely exploitable. Because the XSS payload can capture session tokens, the risk to confidentiality, integrity, and availability of authenticated users is significant.