{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0.56.0"
                  },
                  {
                    "fixed": "0.170.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "45f4eb9846d05fd25d482605c508c0a8d1e04c8e"
            },
            {
              "fixed": "f7aa05f0f521611aa960b2da56e1870ea04f57b2"
            }
          ],
          "repo": "https://github.com/gohugoio/hugo",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-r48v-r4vw-h9v8"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140395.json"
  },
  "details": "Hugo from 0.56.0 before 0.170.0 contains a path traversal vulnerability that allows malicious themes or modules to read arbitrary build host files by supplying '..' segments in _vendor/modules.txt import paths. Attackers can make Hugo treat any directory as a module root and use readFile or static mounts to publish secrets, credentials, and system files in the generated site.",
  "id": "CVE-2026-140395",
  "modified": "2026-12-01T15:45:58.835717435Z",
  "published": "2026-12-01T14:29:10.962Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140395.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/gohugoio/hugo/security/advisories/GHSA-r48v-r4vw-h9v8"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-140395"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/hugo-0.56.0-before-0.170.0-path-traversal-via-vendor-modules-txt"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Hugo 0.56.0 before 0.170.0 Path Traversal via _vendor/modules.txt"
}