{"id":"CVE-2026-130866","aliases":["CVE-2026-130866"],"related":[],"kind":"vulnerability","state":"published","title":"Pastefy 7.2.1 before 7.2.7 Stored XSS via Mermaid Init Directive","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-11-17T19:47:30.307Z","modified":"2026-11-18T17:17:41.633Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":5.3,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"7.2.1","fixed":"7.2.7","status":"affected"}],"vendor":"InteraApps","product":"Pastefy","repo":"https://github.com/interaapps/pastefy","source":"cvelist"}],"references":[{"url":"https://github.com/interaapps/pastefy/issues/142","tags":["issue-tracking"],"sources":["cvelist","nvd"]},{"url":"https://github.com/interaapps/pastefy/commit/caf35d8f279e2e1386a066753f2d644a0ba79507","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/interaapps/pastefy/releases/tag/7.2.7","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://github.com/interaapps/pastefy/blob/7.2.6/frontend/src/components/previews/MermaidViewer.vue#L28-L80","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/pastefy-7.2.1-before-7.2.7-stored-xss-via-mermaid-init-directive","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["George Chen"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-18T16:53:26.054Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-130866","url":"https://www.cve.org/CVERecord?id=CVE-2026-130866","licence":"CVE Terms of Use","modified":"2026-11-18T16:54:16.825Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-130866","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-130866","licence":"Public domain","modified":"2026-11-18T17:17:41.633Z"}],"updatedAt":"2026-11-25T22:59:51.066Z","epss":{"score":0.00344,"percentile":0.29941,"date":"2026-12-01T12:00:22.000Z"}}