<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>gohugoio vulnerabilities — Vulnerability Watch</title>
  <subtitle>New gohugoio vulnerabilities, exploits and security advisories.</subtitle>
  <link href="https://watcher.digitalizingworld.com/vendor/gohugoio.xml" rel="self"/>
  <link href="https://watcher.digitalizingworld.com/vendor/gohugoio.html"/>
  <id>https://watcher.digitalizingworld.com/vendor/gohugoio.xml</id>
  <updated>2026-12-01T15:18:04+00:00</updated>
  <entry>
    <title>CVE-2026-140395 — gohugoio hugo</title>
    <link href="https://watcher.digitalizingworld.com/cve/CVE-2026-140395.html"/>
    <id>https://watcher.digitalizingworld.com/cve/CVE-2026-140395.html</id>
    <updated>2026-12-01T15:18:04+00:00</updated>
    <summary>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 &#39;..&#39; 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.</summary>
    <author><name>NVD</name></author>
  </entry>
  <entry>
    <title>CVE-2026-140394 — gohugoio hugo</title>
    <link href="https://watcher.digitalizingworld.com/cve/CVE-2026-140394.html"/>
    <id>https://watcher.digitalizingworld.com/cve/CVE-2026-140394.html</id>
    <updated>2026-12-01T15:18:04+00:00</updated>
    <summary>Hugo after 0.140.2 and before 0.170.0 contains a stored cross-site scripting vulnerability in the highlight shortcode and transform.Highlight template function, which write the wrapperClass option unescaped into the wrapping div&#39;s class attribute. Content authors can supply a wrapperClass value that closes the attribute and appends a script element, executing JavaScript in visitors&#39; browsers unde…</summary>
    <author><name>NVD</name></author>
  </entry>
  <entry>
    <title>GHSA-4whp-jx7j-xvrm — Hugo highlight wrapperClass option allows stored cross-site scripting</title>
    <link href="https://github.com/advisories/GHSA-4whp-jx7j-xvrm"/>
    <id>https://watcher.digitalizingworld.com/ghsa:GHSA-4whp-jx7j-xvrm</id>
    <updated>2026-12-01T02:24:46+00:00</updated>
    <summary>Summary The wrapperClass option of the built-in highlight shortcode (and the transform.Highlight template function) was written unescaped into the wrapping &lt;div class=&#34;...&#34;&gt;, allowing a content author to inject arbitrary HTML/JavaScript into the rendered page. Details markup/highlight/highlight.go (writeDivStart) wrote wrapperClass directly between class=&#34; and &#34;, while all other attribute values…</summary>
    <author><name>GitHub Advisory</name></author>
  </entry>
  <entry>
    <title>GHSA-r48v-r4vw-h9v8 — Hugo: Build-host file disclosure through path traversal in vendored module metadata</title>
    <link href="https://github.com/advisories/GHSA-r48v-r4vw-h9v8"/>
    <id>https://watcher.digitalizingworld.com/ghsa:GHSA-r48v-r4vw-h9v8</id>
    <updated>2026-12-01T02:23:54+00:00</updated>
    <summary>Summary A theme or module can ship a vendor/modules.txt with an import path containing .. segments. Hugo used this path as the module&#39;s root directory without checking that it stays inside vendor, so a malicious theme can make Hugo treat any directory on the build host (up to /) as its module root and read files from it. Details collectModulesTXT in modules/collect.go builds the vendored module d…</summary>
    <author><name>GitHub Advisory</name></author>
  </entry>
  <entry>
    <title>GHSA-r73q-gwx2-fpxm — Hugo theme-defined module replacements bypass mount restrictions and widen the Node.js read sandbox</title>
    <link href="https://github.com/advisories/GHSA-r73q-gwx2-fpxm"/>
    <id>https://watcher.digitalizingworld.com/ghsa:GHSA-r73q-gwx2-fpxm</id>
    <updated>2026-11-30T21:49:32+00:00</updated>
    <summary>Summary A theme or module could define its own module.replacements and mount directories anywhere on the host. Details A theme or module could define its own module.replacements. If the project didn&#39;t set any replacements, Hugo applied the theme&#39;s replacements as if the project had set them. The theme could then import and mount a directory anywhere on the host, either by absolute path or by esca…</summary>
    <author><name>GitHub Advisory</name></author>
  </entry>
</feed>