← VULNERABILITIES

CVE-2026-130866

Pastefy 7.2.1 before 7.2.7 Stored XSS via Mermaid Init Directive

Medium · 5.3Fix available
CVSS
5.3
EPSS
0.34% (p30)
Published
2026-11-17
Age
19d old
Modified
2026-11-18
Product
InteraApps Pastefy

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

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.

Fixed in

7.2.7

Affected packages

EcosystemPackageRangeFixed
vendorPastefy>=7.2.1, <7.2.77.2.7

Sources

  • NVD · first seen 19d ago · NVD terms of use
  • OSV · first seen 19d ago · CC-BY 4.0
  • CVE List · first seen 19d ago · CVE Terms of Use

References

JSON