# CVE-2026-130866: Pastefy 7.2.1 before 7.2.7 Stored XSS via Mermaid Init Directive

- Severity: Medium 5.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Published: 2026-11-17T19:47:30.307Z
- Modified: 2026-11-18T17:17:41.633Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- InteraApps Pastefy: from 7.2.1 before 7.2.7

## Every score

- VulnCheck: CVSS:4.0 5.3 Medium `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`
- VulnCheck: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/interaapps/pastefy/issues/142> (issue-tracking)
- <https://github.com/interaapps/pastefy/commit/caf35d8f279e2e1386a066753f2d644a0ba79507> (patch)
- <https://github.com/interaapps/pastefy/releases/tag/7.2.7> (release-notes)
- <https://github.com/interaapps/pastefy/blob/7.2.6/frontend/src/components/previews/MermaidViewer.vue#L28-L80> (technical-description)
- <https://www.vulncheck.com/advisories/pastefy-7.2.1-before-7.2.7-stored-xss-via-mermaid-init-directive> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-130866](https://www.cve.org/CVERecord?id=CVE-2026-130866), CVE Terms of Use, modified 2026-11-18
- NVD: [CVE-2026-130866](https://nvd.nist.gov/vuln/detail/CVE-2026-130866), Public domain, modified 2026-11-18

---

Page: https://cve.day/CVE-2026-130866 · Whole record: https://cve.day/CVE-2026-130866.json · Rebuilt by cve.day 2026-11-25T22:59:51.066Z
