SecurityContext

CVE-2026-130866: Pastefy - Stored XSS

  • Cve: CVE-2026-130866
  • Name: Pastefy - Stored XSS
  • 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.
  • Impact: Attackers can steal viewers' API session keys and act on their accounts, potentially leading to full account takeover.
  • Remediation: Upgrade to version 7.2.7 or later.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec, information_disclosure
  • Requirement type: user_interaction
  • Requirements: Victim must view the malicious paste
  • Labels source: securitycontext
  • Severity: medium
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00282
  • Epss percentile: 0.20756
  • Assignee: [email protected]
  • Published at: 2026-11-17T20:17:52Z
  • Age in days: 7
  • Modified at: 2026-11-18T17:17:41Z
  • References total: 5
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-130866
  • Nvd status: received
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/interaapps/pastefy/blob/7.2.6/frontend/src/components/previews/MermaidViewer.vue#L28-L80
https://github.com/interaapps/pastefy/commit/caf35d8f279e2e1386a066753f2d644a0ba79507
https://github.com/interaapps/pastefy/issues/142
https://github.com/interaapps/pastefy/releases/tag/7.2.7
https://www.vulncheck.com/advisories/pastefy-7.2.1-before-7.2.7-stored-xss-via-mermaid-init-directive

Projects

RepositoryLink kindsIndexedUrl
interaapps/pastefycommit, issues, releasesyes/v1/repositories/interaapps/pastefy

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts