{
  "id": "CVE-2026-32940",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-32940",
  "published_at": "2026-03-20T03:33:43.069Z",
  "title": "SiYuan has a SanitizeSVG bypass via data:text/xml in getDynamicIcon (incomplete fix for CVE-2026-29183)",
  "vendor": "siyuan-note",
  "product": "siyuan",
  "cvss": {
    "score": 9.3,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "SiYuan is a personal knowledge management system. In versions 3.6.0 and below, SanitizeSVG has an incomplete blocklist — it blocks data:text/html and data:image/svg+xml in href attributes but misses data:text/xml and data:application/xml, both of which can render SVG with JavaScript execution. The unauthenticated /api/icon/getDynamicIcon endpoint serves user-controlled input (via the content parameter) directly into SVG markup using fmt.Sprintf with no escaping, served as Content-Type: image/svg+xml. This creates a click-through XSS: a victim navigates to a crafted URL, sees an SVG with an injected link, and clicking it triggers JavaScript via the bypassed MIME types. The attack requires direct navigation to the endpoint or \u003cobject\u003e/\u003cembed\u003e embedding, since \u003cimg\u003e tag rendering in the frontend doesn't allow interactive links. This issue has been fixed in version 3.6.1.",
  "cwe": "CWE-79",
  "cpes": [
    "cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.3,
    "nvd": 6.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "siyuan-note",
        "product": "siyuan",
        "ranges": [
          "\u003c 3.6.1"
        ],
        "fixed_in": [
          "3.6.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade siyuan to 3.6.1 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/siyuan-note/siyuan/security/advisories/GHSA-4mx9-3c2h-hwhg"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/siyuan-note/siyuan/commit/d01d561875d4f744e9f6232f1d4831e3642b8696"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/advisories/GHSA-6865-qjcf-286f"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/siyuan-note/siyuan/releases/tag/v3.6.1"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
