mediumCVE-2026-50135

CVE-2026-50135 hugo vulnerability

Hugo is a static site generator. From 0.123.0 to 0.161.1, a regression made RootMappingFs.statRoot use Stat (follows symlinks) instead of Lstat , so a direct resources.Get of a symlink pointing outside its mount returned the target's contents — letting a symlink planted in a local mount (e.g. a vendored themes/ theme) read arbitrary files accessible to the Hugo user. Go-module themes from GitHub (symlinks stripped) and directory walks were unaffected. Fixed in 0.162.0.

Producthugo
CVSS6.9
EPSS0.00275
UpdatedJuly 13, 2026

Quick answer

gohugo hugo should be reviewed and updated if it matches the affected versions. The recommended fix is to apply the vendor-supported patched version or the mitigation steps below, then retest the public website with Fixnx.

Who is affected

Affected versions

  • Review vendor advisory for affected versions.

Fixed versions

  • Apply the latest vendor-supported patched version.

How to fix it

Hugo is affected by CVE-2026-50135, a path traversal or unsafe file access risk. Hugo is a static site generator. The recommended remediation is to update to Hugo 0.162.0 or later. Until the update is complete, avoid building untrusted themes or local mounts with symlinks and isolate site builds until patched, review logs, and reduce exposure of the affected service or workflow.

  1. Inventory every deployment, package, appliance, container, service, and managed environment that uses Hugo.
  2. Confirm the installed version and compare it with the affected versions listed in the source advisory and the source advisory for CVE-2026-50135.
  3. Apply the vendor-supported fix: update to Hugo 0.162.0 or later.
  4. If the update cannot be applied immediately, avoid building untrusted themes or local mounts with symlinks and isolate site builds until patched; disable unnecessary public access, endpoints, integrations, uploads, management interfaces, or high-risk features until patched.
  5. Review application, device, reverse-proxy, WAF, package manager, container, authentication, and audit logs for activity related to CVE-2026-50135.
  6. Rotate sessions, API tokens, service credentials, integration keys, and administrator passwords if logs or affected data indicate compromise, code execution, credential exposure, or unauthorized access.
  7. Clear caches, restart affected services, rebuild affected containers or appliances when appropriate, and remove temporary files, stored payloads, generated artifacts, or unsafe configuration created during exploitation attempts.

Scan now. Google sign-in is only needed to unlock fix guidance.

Verify the fix

  • Confirm Hugo now reports Hugo 0.162.0 or later or a later vendor-supported fixed release for the deployed branch.
  • Verify the affected workflow no longer allows the behavior described in CVE-2026-50135, using a safe regression test or vendor-provided validation method.
  • Review logs after remediation for continued exploit attempts, denial-of-service symptoms, suspicious redirects, unauthorized requests, file access, credential exposure, or configuration changes.
  • Rerun a Fixnx scan and any product-specific scanner, package audit, device health check, or manual regression test relevant to the affected service.
  • Document affected assets, fixed versions, mitigation decisions, validation evidence, and any cleanup or credential rotation performed.

Related categories

Trusted references

FAQ

What is affected by CVE-2026-50135?

gohugo hugo should be checked against the vendor advisory and trusted references linked on this page.

What should I fix first?

Start with internet-facing sites, admin panels, login flows, plugins, themes, modules, packages, and systems that process user-controlled input or sensitive data.

How do I confirm the fix worked?

Apply the patched version or mitigation, clear caches where relevant, retest the affected workflow, and run a new Fixnx scan to verify public website exposure signals.

How are Fixnx security risk categories chosen?

Fixnx keeps one canonical risk page and assigns only broad, relevant categories such as ecosystem, technology area, or vulnerability class.