{"id":"CVE-2026-130866","aliases":[],"title":"Pastefy 7.2.1 before 7.2.7 Stored XSS via Mermaid Init Directive","originalDescription":"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.","severity":{"cvss":5.3,"vector":"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","label":"medium"},"exploitation":{"kev":null,"epss":{"score":0.00344,"percentile":0.29896},"exploitDb":null},"affected":[{"ecosystem":"vendor","name":"Pastefy","range":">=7.2.1, <7.2.7","fixed":"7.2.7"}],"references":[{"url":"https://github.com/interaapps/pastefy/issues/142","type":"issue-tracking"},{"url":"https://github.com/interaapps/pastefy/commit/caf35d8f279e2e1386a066753f2d644a0ba79507","type":"patch"},{"url":"https://github.com/interaapps/pastefy/releases/tag/7.2.7","type":"release-notes"},{"url":"https://github.com/interaapps/pastefy/blob/7.2.6/frontend/src/components/previews/MermaidViewer.vue#L28-L80","type":"technical-description"},{"url":"https://www.vulncheck.com/advisories/pastefy-7.2.1-before-7.2.7-stored-xss-via-mermaid-init-directive","type":"third-party-advisory"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/130xxx/CVE-2026-130866.json","type":"advisory"},{"url":"https://github.com/interaapps/pastefy","type":"package"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-130866","type":"advisory"}],"sources":[{"name":"nvd","at":"2026-11-18T17:36:56.114Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-130866","license":"NVD terms of use","firstSeenAt":"2026-11-17T20:42:38.574Z"},{"name":"osv","at":"2026-11-18T21:27:37.412Z","url":"https://osv.dev/vulnerability/CVE-2026-130866","license":"CC-BY 4.0","firstSeenAt":"2026-11-17T21:48:59.011Z"},{"name":"cvelistV5","at":"2026-11-19T21:46:29.180Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-130866","license":"CVE Terms of Use","firstSeenAt":"2026-11-17T20:07:01.974Z"}],"firstSeenAt":"2026-11-17T20:07:01.974Z","publishedAt":"2026-11-17T19:47:30.307Z","modifiedAt":"2026-11-18T21:01:56.984Z"}