Skip to content
Heist/ feed
Back to feed
Medium

SiYuan Vulnerable to Stored Cross-Site Scripting (XSS) via Unrestricted SVG File Upload

Type: advisorySources: OSV

SiYuan is self-hosted, open source personal knowledge management software. Prior to 3.5.4-dev2, a Stored Cross-Site Scripting (XSS) vulnerability exists in SiYuan Note. The application does not sanitize uploaded SVG files. If a user uploads and views a malicious SVG file (e.g., imported from an untrusted source), arbitrary JavaScript code is executed in the context of their authenticated session. This vulnerability is fixed in 3.5.4-dev2.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-23645
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 18:02 UTC · Revision 1

Source evidence

SiYuan Vulnerable to Stored Cross-Site Scripting (XSS) via Unrestricted SVG File Upload

core-osv · Original source

Published 16 Jan 2026, 19:20 UTC

SiYuan is self-hosted, open source personal knowledge management software. Prior to 3.5.4-dev2, a Stored Cross-Site Scripting (XSS) vulnerability exists in SiYuan Note. The application does not sanitize uploaded SVG files. If a user uploads and views a malicious SVG file (e.g., imported from an untrusted source), arbitrary JavaScript code is executed in the context of their authenticated session. This vulnerability is fixed in 3.5.4-dev2.

osv:CVE-2026-23645
Complete source record
{
  "id": "b727c353105ecba70c6f8f313561b0917abffc039f0d264471f8155de27f0049",
  "url": "https://osv.dev/vulnerability/CVE-2026-23645",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "SiYuan Vulnerable to Stored Cross-Site Scripting (XSS) via Unrestricted SVG File Upload",
    "summary": "SiYuan is self-hosted, open source personal knowledge management software. Prior to 3.5.4-dev2, a Stored Cross-Site Scripting (XSS) vulnerability exists in SiYuan Note. The application does not sanitize uploaded SVG files. If a user uploads and views a malicious SVG file (e.g., imported from an untrusted source), arbitrary JavaScript code is executed in the context of their authenticated session. This vulnerability is fixed in 3.5.4-dev2.",
    "evidence": "osv:CVE-2026-23645",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-23645",
      "aliases": [
        "CVE-2026-23645",
        "GHSA-pcjq-j3mq-jv5j",
        "GO-2026-4324"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/siyuan-note/siyuan",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "d5d10dd41b0c9090adc63062c77185e711d59030"
                },
                {
                  "introduced": "f03400aa41894b5fb008059e16c14927ffed439a"
                },
                {
                  "fixed": "11115da3d0de950593ee4ce375cf7f9018484388"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.5.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:b3log:siyuan:3.5.4:dev1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.5.4-dev1"
                      },
                      {
                        "last_affected": "3.5.4-dev1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "11115da3d0de950593ee4ce375cf7f9018484388"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "3.5.4-dev1",
            "v3.5.4-dev5",
            "v3.5.4-dev3",
            "v3.5.4-dev2",
            "v3.5.4-dev1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23645.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:22.044402732Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23645.json",
        "https://github.com/siyuan-note/siyuan/security/advisories/GHSA-pcjq-j3mq-jv5j",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-23645",
        "https://github.com/siyuan-note/siyuan/issues/16844",
        "https://github.com/siyuan-note/siyuan/commit/11115da3d0de950593ee4ce375cf7f9018484388"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23645.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-23645",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 488053,
  "published_at": "2026-01-16T19:20:06.744+00:00"
}