{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "3.6.0"
              },
              {
                "fixed": "3.6.2"
              }
            ]
          },
          "events": [
            {
              "introduced": "fd6526133bb318d534b8865998f8059ae765fdd1"
            },
            {
              "fixed": "29b104f338f9b0cdda0df852871a09a6268ced2f"
            }
          ],
          "repo": "https://github.com/siyuan-note/siyuan",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-73g7-86qr-jrg3"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34605.json"
  },
  "details": "SiYuan is a personal knowledge management system. From version 3.6.0 to before version 3.6.2, the SanitizeSVG function introduced in version 3.6.0 to fix XSS in the unauthenticated /api/icon/getDynamicIcon endpoint can be bypassed by using namespace-prefixed element names such as \u003cx:script xmlns:x=\"http://www.w3.org/2000/svg\"\u003e. The Go HTML5 parser records the element's tag as \"x:script\" rather than \"script\", so the tag check passes it through. The SVG is served with Content-Type: image/svg+xml and no Content Security Policy; when a browser opens the response directly, its XML parser resolves the prefix to the SVG namespace and executes the embedded script. This issue has been patched in version 3.6.2.",
  "id": "CVE-2026-34605",
  "modified": "2026-04-01T23:10:17.094937910Z",
  "published": "2026-03-31T21:50:10.076Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34605.json"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/siyuan-note/siyuan/issues/17246"
    },
    {
      "type": "WEB",
      "url": "https://github.com/siyuan-note/siyuan/releases/tag/v3.6.2"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/siyuan-note/siyuan/security/advisories/GHSA-73g7-86qr-jrg3"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-34605"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "SiYuan: Reflected XSS via SVG namespace prefix bypass in SanitizeSVG ( getDynamicIcon, unauthenticated )"
}