{"vuln_id":"CVE-2026-130866","aliases":[],"description":"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.","published_at":"2026-11-17T20:17:52.827000Z","modified_at":"2026-11-18T17:17:41.633000Z","first_seen_at":"2026-11-21T19:15:49.608922Z","severity":"medium","severity_source":"nvd","cvss_score":5.3,"cvss_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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cwe":["CWE-79"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00282,"epss_percentile":0.20962,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-130866"},"matched_alias":null,"items":[{"id":6677,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-130866: 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 mer…","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.\n\nReferences:\nhttps://github.com/interaapps/pastefy/blob/7.2.6/frontend/src/components/previews/MermaidViewer.vue#L28-L80\nhttps://github.com/interaapps/pastefy/commit/caf35d8f279e2e1386a066753f2d644a0ba79507\nhttps://github.com/interaapps/pastefy/issues/142\nhttps://github.com/interaapps/pastefy/releases/tag/7.2.7\nhttps://www.vulncheck.com/advisories/pastefy-7.2.1-before-7.2.7-stored-xss-via-mermaid-init-directive","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-130866","published_at":"2026-11-17T20:17:52.827000Z","updated_at":"2026-11-18T17:17:41.633000Z","fetched_at":"2026-11-21T19:15:31.482476Z","severity":"medium","cvss_score":5.3,"epss":0.00282,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-130866","vuln_ids":["CVE-2026-130866"],"tags":["CWE-79"],"cluster_id":7324,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/6677","html":"https://vulnwatch.ve1ve2.com/item/6677"}}]}