CVE-2026-130866

Source
https://cve.org/CVERecord?id=CVE-2026-130866
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-130866.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-130866
Published
2026-11-17T19:47:30Z
Modified
2026-11-17T21:46:02Z
Severity
  • 5.3 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
Pastefy 7.2.1 before 7.2.7 Stored XSS via Mermaid Init Directive
Details

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.

Database specific
{
    "cna_assigner":  "VulnCheck",
    "cwe_ids":  [
        "CWE-79"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/130xxx/CVE-2026-130866.json"
}
References

Affected packages

Git / github.com/interaapps/pastefy

Affected ranges

Type
GIT
Repo
https://github.com/interaapps/pastefy
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "7.2.1"
                },
                {
                    "fixed":  "7.2.7"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "fixed":  "caf35d8f279e2e1386a066753f2d644a0ba79507"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "7.2.7",
            "range":  [
                {
                    "fixed":  "caf35d8f279e2e1386a066753f2d644a0ba79507"
                }
            ],
            "source":  "REFERENCES_TAG"
        }
    ]
}

Affected versions

7.*
7.2.1
7.2.2
7.2.3
7.2.4
7.2.5
7.2.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-130866.json"