Skip to content
Heist/ feed
Back to feed
High

Hugo v0.161.0 to v0.165.0 Arbitrary File Read via Symlinks

Type: advisorySources: OSV

Hugo versions from v0.161.0 through v0.165.0 run Node.js tools (css.PostCSS, css.TailwindCSS, js.Babel) under the Node.js permission model to restrict file system reads to the project directory and configured mounts. Because the Node.js permission model validates only the lexical path and follows symbolic links that point outside the allowed set, Hugo did not detect symlinks escaping the sandbox. An attacker who can contribute content to a Hugo project (for example via a pull request) can commit a symlink such as assets/css/x.css -> /etc/passwd together with a PostCSS plugin that reads it, allowing any file readable by the Hugo build process to be disclosed and potentially embedded in the published site. This affects builds using the default security configuration; projects that do not invoke Node.js tools are unaffected. Fixed in v0.166.0, which scans allowed paths and fails the build when a symbolic link resolves outside them.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-100690
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 01:52 UTC · Revision 1

Source evidence

Hugo v0.161.0 to v0.165.0 Arbitrary File Read via Symlinks

core-osv · Original source

Published 26 Sept 2026, 13:23 UTC

Hugo versions from v0.161.0 through v0.165.0 run Node.js tools (css.PostCSS, css.TailwindCSS, js.Babel) under the Node.js permission model to restrict file system reads to the project directory and configured mounts. Because the Node.js permission model validates only the lexical path and follows symbolic links that point outside the allowed set, Hugo did not detect symlinks escaping the sandbox. An attacker who can contribute content to a Hugo project (for example via a pull request) can commit a symlink such as assets/css/x.css -> /etc/passwd together with a PostCSS plugin that reads it, allowing any file readable by the Hugo build process to be disclosed and potentially embedded in the published site. This affects builds using the default security configuration; projects that do not invoke Node.js tools are unaffected. Fixed in v0.166.0, which scans allowed paths and fails the build when a symbolic link resolves outside them.

osv:CVE-2026-100690
Complete source record
{
  "id": "973bc513adc8d6eaf0fdfa16a790a79645c048d70b763b7dde1f38289782be65",
  "url": "https://osv.dev/vulnerability/CVE-2026-100690",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Hugo v0.161.0 to v0.165.0 Arbitrary File Read via Symlinks",
    "summary": "Hugo versions from v0.161.0 through v0.165.0 run Node.js tools (css.PostCSS, css.TailwindCSS, js.Babel) under the Node.js permission model to restrict file system reads to the project directory and configured mounts. Because the Node.js permission model validates only the lexical path and follows symbolic links that point outside the allowed set, Hugo did not detect symlinks escaping the sandbox. An attacker who can contribute content to a Hugo project (for example via a pull request) can commit a symlink such as assets/css/x.css -> /etc/passwd together with a PostCSS plugin that reads it, allowing any file readable by the Hugo build process to be disclosed and potentially embedded in the published site. This affects builds using the default security configuration; projects that do not invoke Node.js tools are unaffected. Fixed in v0.166.0, which scans allowed paths and fails the build when a symbolic link resolves outside them.",
    "evidence": "osv:CVE-2026-100690",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-100690",
      "aliases": [
        "CVE-2026-100690",
        "GHSA-x3mx-cm49-8m9c"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/gohugoio/hugo",
              "type": "GIT",
              "events": [
                {
                  "introduced": "98d396c16a07b51df06e7673d817a3880da6218d"
                },
                {
                  "fixed": "78400b4de8adc99273d3e674ed6c4d14c3bdf669"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0.161.0"
                      },
                      {
                        "fixed": "0.166.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "cpe": "cpe:2.3:a:gohugo:hugo:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.161.0"
                      },
                      {
                        "fixed": "0.166.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.165.0",
            "v0.164.0",
            "v0.163.3",
            "v0.163.2",
            "v0.163.1",
            "v0.163.0",
            "v0.162.1",
            "v0.162.0",
            "v0.161.1",
            "v0.161.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-100690.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:32.277134530Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100690.json",
        "https://github.com/gohugoio/hugo/security/advisories/GHSA-x3mx-cm49-8m9c",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-100690",
        "https://www.vulncheck.com/advisories/hugo-0.161.0-to-0.165.0-arbitrary-file-read-via-symlinks"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-59"
        ],
        "cna_assigner": "VulnCheck",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100690.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-100690",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 499500,
  "published_at": "2026-09-26T13:23:49.448+00:00"
}