{"id":"CVE-2026-130866","published":"2026-11-17T19:47:30Z","modified":"2026-11-18T16:54:16Z","title":"Pastefy 7.2.1 before 7.2.7 Stored XSS via Mermaid Init Directive","vendor":"InteraApps","product":"Pastefy","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00282,"percentile":0.21163,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/interaapps/pastefy/issues/142","tags":["issue-tracking"]},{"url":"https://github.com/interaapps/pastefy/commit/caf35d8f279e2e1386a066753f2d644a0ba79507","tags":["patch"]},{"url":"https://github.com/interaapps/pastefy/releases/tag/7.2.7","tags":["release-notes"]},{"url":"https://github.com/interaapps/pastefy/blob/7.2.6/frontend/src/components/previews/MermaidViewer.vue#L28-L80","tags":["technical-description"]},{"url":"https://www.vulncheck.com/advisories/pastefy-7.2.1-before-7.2.7-stored-xss-via-mermaid-init-directive","tags":["third-party-advisory"]}],"priority":{"score":8.5,"factors":[{"name":"EPSS percentile","points":4.23},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"interaapps","affectedVersions":[{"vendor":"InteraApps","product":"Pastefy","versions":[">= 7.2.1, < 7.2.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-18T16:53:26.054779Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-127235","exploited":false,"provenance":"source"}}