{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:gohugo:hugo:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0.123.0"
              },
              {
                "fixed": "0.163.1"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "3c8a4713908e48e6523f058ca126710397aa4ed5"
            },
            {
              "fixed": "2a4fd58818ffdf45bbb2a97ab119bb4c46cd93f0"
            },
            {
              "fixed": "cf9c8f93ca2a2838ce378f9e36d052ac2f79e229"
            }
          ],
          "repo": "https://github.com/gohugoio/hugo",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-c3wq-j5vh-68rc"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-59"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58403.json"
  },
  "details": "Hugo is a static site generator. From v0.123.0 through v0.163.0, Hugo's virtual filesystem is designed so that files under a mount cannot reach outside the mount tree, but a regression caused RootMappingFs.statRoot to call Stat, which follows symlinks, instead of Lstat, so a direct os.ReadFile \"somefile\" where somefile was a symlink pointing outside the mount would return the target's contents. This effectively let a symlink planted inside a theme or local mount read arbitrary files reachable to the user running hugo. This issue is fixed in v0.163.1.",
  "id": "CVE-2026-58403",
  "modified": "2026-07-09T03:51:25.426776233Z",
  "published": "2026-07-06T19:25:45.971Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/gohugoio/hugo/releases/tag/v0.163.1"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58403.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/gohugoio/hugo/security/advisories/GHSA-c3wq-j5vh-68rc"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-58403"
    },
    {
      "type": "FIX",
      "url": "https://github.com/gohugoio/hugo/commit/cf9c8f93ca2a2838ce378f9e36d052ac2f79e229"
    },
    {
      "type": "FIX",
      "url": "https://github.com/gohugoio/hugo/pull/15020"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Hugo symlink confinement bypass in os.ReadFile"
}