{"id":"CVE-2026-50135","revision":"90be945f0db540d2abf2b5fe7b94cc93","records":[{"revision":"90be945f0db540d2abf2b5fe7b94cc93","observedAt":"2026-10-25T12:17:38.331+00:00","statement":{"source":"nvd","id":"CVE-2026-50135","aliases":[],"title":"Hugo is a static site generator. From 0.123.0 to 0.161.1, a regression made \u00A0RootMappingFs.statRoot\u00A0 use \u00A0Stat\u00A0 (follows symlinks) instead of \u00A0Lstat\u00A0, so a direct \u00A0resources.Get\u00A0 of a symlink pointing outside its mount returned the target's…","description":"Hugo is a static site generator. From 0.123.0 to 0.161.1, a regression made \u00A0RootMappingFs.statRoot\u00A0 use \u00A0Stat\u00A0 (follows symlinks) instead of \u00A0Lstat\u00A0, so a direct \u00A0resources.Get\u00A0 of a symlink pointing outside its mount returned the target's contents — letting a symlink planted in a local mount (e.g. a vendored \u00A0themes/\u00A0 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.","state":0,"publishedAt":"2026-07-06T21:16:56.347+00:00","modifiedAt":"2026-07-08T14:53:04.987+00:00","affected":[],"metrics":[{"system":"CVSS 4.0 · security-advisories@github.com · Secondary","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","score":6.9,"severity":"MEDIUM"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":5.5,"severity":"MEDIUM"}],"references":["https://github.com/gohugoio/hugo/commit/f8b5fa09a64950c32b803821ede411ebfe772b7a","https://github.com/gohugoio/hugo/releases/tag/v0.162.0","https://github.com/gohugoio/hugo/security/advisories/GHSA-fw87-fv5r-9fpw"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-50135","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-59"],"productCriteria":["cpe:2.3:a:gohugo:hugo:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2026-07-06T21:16:56.347","lastModified":"2026-07-08T14:53:04.987"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-50135","identifiers":["CVE-2026-50135"]},"retained":false,"historicalAffected":[]}],"coverage":[]}