{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "3.7.3"
                  }
                ],
                "source": "DESCRIPTION"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "eef10568384e2e7cf547adb029ae46a72e43c287"
            }
          ],
          "repo": "https://github.com/siyuan-note/siyuan",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-v97v-gxxg-rhmq"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-200"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/73xxx/CVE-2026-73047.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "range": [
              {
                "fixed": "3.7.4"
              }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandardRange"
          }
        ]
      },
      {
        "extracted_events": [
          {
            "range": [
              {
                "fixed": "3.7.4"
              }
            ],
            "source": "CPE_FIELD",
            "strategy": "CPEApplicability"
          }
        ]
      },
      {
        "extracted_events": [
          {
            "range": [
              {
                "fixed": "3.7.4"
              }
            ],
            "source": "DESCRIPTION"
          }
        ]
      }
    ]
  },
  "details": "siyuan versions \u003c= 3.7.3 (fixed in v3.7.4) contain a server-side template injection vulnerability in the attribute-view Template calculation feature (introduced in v3.7.0-beta.1). The feature's template engine uses Sprig's unmodified function map, which still exposes the env, expandenv, and getHostByName functions that were removed elsewhere for CVE-2024-55660. A local, unauthenticated attacker (the kernel binds to 127.0.0.1 by default with no per-UID access control) can inject a malicious Template calculation formula to read environment variables belonging to the account running siyuan — including from a separate, unprivileged OS account — and to perform DNS lookups from the server's network position.",
  "id": "CVE-2026-73047",
  "modified": "2026-10-21T02:30:30.703056997Z",
  "published": "2026-08-15T21:44:51.211Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/73xxx/CVE-2026-73047.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/siyuan-note/siyuan/security/advisories/GHSA-v97v-gxxg-rhmq"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-73047"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/siyuan-before-server-side-template-injection-via-attribute-view"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "siyuan before v3.7.4 Server-Side Template Injection via attribute-view"
}