p PatchFirst

PatchFirst · Aktuelle Sicherheitslücken

Sicherheitslücken in hugo

In den letzten 30 Tagen veröffentlichte Sicherheitslücken für hugo: 0. Davon im KEV-Katalog: 0.

Sicherheitslücken filtern
Filter zurücksetzen

Sicherheitslücken: 14

  1. CVE-2026-109597

    Mittel · CVSS 5.1EPSS 0,17%Keine Korrektur veröffentlicht

    Hugo v0.60.0 before v0.167.0 Stored XSS via Table of Contents Heading IDs

    Hugo from v0.60.0 before v0.167.0 contains a stored cross-site scripting vulnerability that allows Markdown content authors to inject HTML by supplying crafted explicit heading IDs. Attackers can break out of the unescaped href attribute in .TableOfContents or .Fragments.ToHTML output to inject elements with event handlers into rendered pages.

    Veröffentlicht Aktualisiert
  2. CVE-2026-109595

    Mittel · CVSS 6.7EPSS 0,14%Keine Korrektur veröffentlicht

    Hugo v0.84.0 before v0.167.0 Path Traversal via js.Build ESBuild Resolver

    Hugo from v0.84.0 before v0.167.0 contains a path traversal vulnerability that allows malicious themes or modules to read files outside the project root via ESBuild's fallback resolver in js.Build, js.Batch, and css.Build. Attackers can ship relative imports or symlinks pointing outside the project to bundle any file readable by the build user into published JavaScript or CSS output.

    Veröffentlicht Aktualisiert
  3. CVE-2026-109574

    Mittel · CVSS 6.7EPSS 0,14%Keine Korrektur veröffentlicht

    Hugo before v0.167.0 Path Traversal via css.Sass Import Fallback

    Hugo before v0.167.0 contains a path traversal vulnerability in css.Sass that allows malicious themes or modules to read files outside the project root through the Sass compiler's import fallback. Attackers can ship stylesheets with relative, absolute, or symlinked @import or @use targets to compile readable files into the published site CSS.

    Veröffentlicht Aktualisiert
  4. CVE-2026-100694

    Mittel · CVSS 5.1EPSS 0,19%Keine Korrektur veröffentlicht

    Hugo before 0.166.0 Cross-Site Scripting via text/org

    Hugo is a static site generator. In versions from v0.56.0 through v0.165.x, content files mapped to the text/org media type are rendered without escaping raw HTML: Org export blocks and @@html:...@@ snippets pass HTML through unescaped, resulting in cross-site scripting (XSS) in the generated site. An attacker who can supply or influence a content file under /content or the output of a content adapter can inject scripts that execute in the browsers of visitors to the affected pages. Only pages whose source file or content-adapter output declares the text/org media type are affected, and sites that fully trust all content sources are not impac

    Veröffentlicht Aktualisiert
  5. CVE-2026-100691

    Mittel · CVSS 5.1EPSS 0,17%Keine Korrektur veröffentlicht

    Hugo before 0.166.0 Stored XSS via lineAnchors code block option

    Hugo versions 0.75.0 through 0.165.x contain a stored cross-site scripting vulnerability: the syntax highlighter does not escape the `lineAnchors` option before passing it to Chroma, which writes the value verbatim into the `id` and `href` attributes of the generated line-number markup. A crafted `lineAnchors` value supplied as a Markdown code fence attribute (or passed to the `highlight` template function) results in unescaped HTML in the rendered page, allowing arbitrary JavaScript to execute in the browsers of visitors to the generated site. This affects sites that build and publish Markdown from untrusted contributors; Hugo's security mod

    Veröffentlicht Aktualisiert
  6. CVE-2026-89258

    Kritisch · CVSS 9.3EPSS 0,32%Keine Korrektur veröffentlicht

    Hugo before v0.165.0 Symlink Confinement Bypass via resources.Get

    Hugo is a static site generator. In versions after v0.123.0 and before v0.165.0, symlinks in parent directories were not dropped during direct resource lookups, allowing path confinement to be bypassed. An attacker who can place — or who convinces a site author to place — a symlink inside a mounted directory (for example, in a locally vendored theme under themes/) can cause functions that perform direct lookups, such as resources.Get and os.ReadFile, to follow that symlink and read files outside the intended project boundaries, disclosing their contents in the built site. Themes mounted as Go modules fetched from GitHub have symlinks stripped

    Veröffentlicht Aktualisiert
  7. CVE-2026-10618

    Mittel · CVSS 4.8EPSS 0,21%Keine Korrektur veröffentlicht

    Hugo 0.93.0 through 0.165.0 Stored Cross-Site Scripting via Unescaped Code-Fence Attribute Values

    Hugo's default fenced-code-block renderer writes attribute values taken from the code-fence info string into the rendered HTML without escaping them. New in markup/internal/attributes/attributes.go converts every attribute value from a byte slice to a string as it is stored, deliberately dropping the escaping that used to happen there, and RenderAttributes in the same file escapes only values that are still byte slices, so its escaping branch is never reached and every value is written verbatim. The function's documentation states that it performs HTML escaping of string attributes, which it does not. A quote inside an attribute value in the

    Veröffentlicht Aktualisiert
  8. CVE-2026-10582

    Hoch · CVSS 8.3EPSS 0,32%Keine Korrektur veröffentlicht

    Hugo 0.91.0 through 0.165.0 Server-Side Request Forgery via security.http.urls Lacking Destination Address Validation

    Hugo's security.http.urls allowlist is the only control on outbound fetches made by resources.GetRemote, and it inspects the URL text alone. CheckAllowedHTTPURL in config/security/securityConfig.go applies the configured pattern list and then re-checks a canonicalised form of an integer, hex or octal IPv4 host, but it never resolves the hostname and never inspects the address the HTTP client actually connects to. The client constructed in resources/resource_factories/create/create.go installs no dial-time hook, so no check occurs at connection time either. A hostname that resolves to a loopback, private or cloud-metadata address therefore sat

    Veröffentlicht Aktualisiert
  9. CVE-2026-50134

    Mittel · CVSS 6.3EPSS 0,25%Keine Korrektur veröffentlicht

    Hugo: security.http.urls allow-list bypass via HTTP redirects

    Hugo is a static site generator. From 0.91.0 until 0.162.0, resources.GetRemote enforces security.http.urls on the URL it is called with, but it did not re-validate intermediate URLs on HTTP 3xx redirects. An allowed server (or an attacker controlling its DNS or response) could therefore redirect the request to a host that the policy was meant to forbid and Hugo would fetch from the redirected target. The same bypass also lifted any host-shape restriction the operator had put in place. This vulnerability is fixed in 0.162.0.

    Veröffentlicht Aktualisiert
  10. CVE-2026-50133

    Mittel · CVSS 5.1EPSS 0,18%Keine Korrektur veröffentlicht

    Hugo: XSS via text/html content files

    Hugo is a static site generator. Prior to 0.162.0, Hugo accepts content files in several markup formats. Files mapped to the text/html media type (typically .html files under /content, or pages produced by a content adapter that sets content.mediaType = "text/html") had their body emitted verbatim into the rendered page. A site that ingests HTML content from an untrusted source could therefore be served stored cross-site scripting. This vulnerability is fixed in 0.162.0.

    Veröffentlicht Aktualisiert
  11. CVE-2026-58402

    Mittel · CVSS 5.1EPSS 0,17%Keine Korrektur veröffentlicht

    Hugo default code block renderer XSS via unescaped code-fence language

    Hugo is a static site generator. From 0.60.0 until 0.163.3, Hugo's default code-block renderer wrote the Markdown code-fence language or info-string into the code class="language-…" data-lang="…" wrapper without HTML escaping. A fence info-string containing a quote and a script payload breaks out of the attribute and injects a live script element. This issue is fixed in 0.163.3.

    Veröffentlicht Aktualisiert
  12. CVE-2026-44301

    Mittel · CVSS 6.2EPSS 0,27%Keine Korrektur veröffentlicht

    Hugo: Node tool execution allows file system access outside the project directory

    Hugo is a static site generator. From 0.43 to before 0.161.0, when building a Hugo site that uses Node-based asset pipelines (PostCSS, Babel, TailwindCSS), Hugo invoked the configured Node tools without restrictions on file system access. As a result, executing hugo against an untrusted site could allow code running through these tools to read or write files outside the project's working directory. Users who do not use PostCSS, Babel, or TailwindCSS, or who only build trusted sites, are not affected. This vulnerability is fixed in 0.161.0.

    Veröffentlicht Aktualisiert
  13. CVE-2026-35166

    Mittel · CVSS 5.3EPSS 0,21%Keine Korrektur veröffentlicht

    Hugo does not properly escape some Markdown links

    Hugo is a static site generator. From 0.60.0 to before 0.159.2, links and image links in the default markdown to HTML renderer are not properly escaped. Hugo users who trust their Markdown content or have custom render hooks for links and images are not affected. This vulnerability is fixed in 0.159.2.

    Veröffentlicht Aktualisiert
  14. CVE-2020-26284

    Hoch · CVSS 7.7EPSS 1,47%Korrektur verfügbar

    Hugo can execute a binary from the current directory on Windows

    Hugo is a fast and Flexible Static Site Generator built in Go. Hugo depends on Go's `os/exec` for certain features, e.g. for rendering of Pandoc documents if these binaries are found in the system `%PATH%` on Windows. In Hugo before version 0.79.1, if a malicious file with the same name (`exe` or `bat`) is found in the current working directory at the time of running `hugo`, the malicious command will be invoked instead of the system one. Windows users who run `hugo` inside untrusted Hugo sites are affected. Users should upgrade to Hugo v0.79.1. Other than avoiding untrusted Hugo sites, there is no workaround.

    • Auf 0.79.1-1 aktualisieren
    Veröffentlicht Aktualisiert

Prüfen Sie Ihren Server

Gleichen Sie Ihren installierten Stack und seine Versionen mit den aktuellen Sicherheitsmeldungen ab.

Prüfen Sie Ihren Server →