# Hugo: Symlink confinement bypass in resources.Get

Advisory record · `GHSA-fw87-fv5r-9fpw`

- **Identifiers:** `GHSA-fw87-fv5r-9fpw` · `CVE-2026-50135` · `GO-2026-5380`
- **State:** Confirmed
- **Severity:** CVSS 6.9 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-59](https://cwe.mitre.org/data/definitions/59.html)
- **Tags:** [Path traversal](https://agentprime.io/advisories/tag/path-traversal.md)
- **Published:** 16 Jun 2026
- **Updated:** 7 Jul 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 16 Jun 2026, 20:12 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `github.com/gohugoio/hugo` (Go): affected `>=0.123.0, <0.162.0`; fixed in `0.162.0`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Hugo versions 0.123.0 through 0.161.1 are affected by a symlink confinement bypass in resources.Get. An attacker who can place a symlink inside a mounted directory, such as a locally vendored theme, or who can convince a site author to do so, can read arbitrary files that the user running hugo can access. Upgrade to Hugo 0.162.0, which rejects symlinked entries in direct lookups.

Written 6 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 6.9 Medium, CVSS 4.0: `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`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0041, the 35th percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 15:05 UTC: First seen by agentprime
- 31 Oct 2026, 15:05 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-fw87-fv5r-9fpw)

## Sources

- [GitHub Advisory Database: GHSA-fw87-fv5r-9fpw](https://github.com/advisories/GHSA-fw87-fv5r-9fpw)
- [OSV: GHSA-fw87-fv5r-9fpw](https://osv.dev/vulnerability/GHSA-fw87-fv5r-9fpw)
- <https://github.com/gohugoio/hugo/security/advisories/GHSA-fw87-fv5r-9fpw>
- <https://github.com/gohugoio/hugo/commit/f8b5fa09a64950c32b803821ede411ebfe772b7a>
- <https://github.com/gohugoio/hugo>
- <https://github.com/gohugoio/hugo/releases/tag/v0.162.0>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-fw87-fv5r-9fpw>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-fw87-fv5r-9fpw/>. Everything for agents: <https://agentprime.io/llms.txt>.
