p PatchFirst

PatchFirst · Vulnérabilités récentes

Vulnérabilités de hugo

Vulnérabilités publiées pour hugo au cours des 30 derniers jours : 2. Présentes dans le catalogue KEV : 0.

Filtrer les vulnérabilités
Effacer les filtres

Vulnérabilités : 26

  1. CVE-2026-140394

    Moyenne · CVSS 5.1EPSS 0,41%Aucun correctif publié

    Hugo 0.141.0 before 0.170.0 Stored XSS via highlight shortcode wrapperClass

    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's class attribute. Content authors can supply a wrapperClass value that closes the attribute and appends a script element, executing JavaScript in visitors' browsers under the site's origin.

    Publication Mise à jour
  2. CVE-2026-140395

    Élevée · CVSS 8.7EPSS 0,81%Aucun correctif publié

    Hugo 0.56.0 before 0.170.0 Path Traversal via _vendor/modules.txt

    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 '..' 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.

    Publication Mise à jour
  3. CVE-2026-109597

    Moyenne · CVSS 5.1EPSS 0,17%Aucun correctif publié

    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.

    Publication Mise à jour
  4. CVE-2026-109596

    Moyenne · CVSS 6.7EPSS 0,14%Aucun correctif publié

    Hugo from v0.162.0 before v0.167.0 Symlink File Disclosure via Nested Mount Ancestor

    Hugo from v0.162.0 before v0.167.0 contains an improper link resolution vulnerability that lets malicious themes or modules expose files outside their root via nested-mount ancestor directories. Attackers controlling a theme can place a symlink or NTFS junction at a virtual ancestor directory, causing resources.Match to list and publish local files during builds.

    Publication Mise à jour
  5. CVE-2026-109595

    Moyenne · CVSS 6.7EPSS 0,14%Aucun correctif publié

    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.

    Publication Mise à jour
  6. CVE-2026-109574

    Moyenne · CVSS 6.7EPSS 0,14%Aucun correctif publié

    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.

    Publication Mise à jour
  7. CVE-2026-100694

    Moyenne · CVSS 5.1EPSS 0,19%Aucun correctif publié

    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

    Publication Mise à jour
  8. CVE-2026-100693

    Élevée · CVSS 8.6EPSS 0,14%Aucun correctif publié

    Hugo v0.162.0 before v0.166.0 IP-literal Deny Rule Bypass

    Hugo versions from v0.162.0 before v0.166.0 contain a case-sensitive validation flaw in the security.http.urls IP-literal deny rule that allows attackers to bypass restrictions. Attackers can use mixed-case URL schemes in resources.GetRemote calls to fetch from restricted IP addresses like localhost.

    Publication Mise à jour
  9. CVE-2026-100692

    Élevée · CVSS 8.7EPSS 0,42%Aucun correctif publié

    Hugo before v0.166.0 Path Traversal via Symlinked Mount Roots

    Hugo is a static site generator. In versions after v0.123.0 and before v0.166.0, Hugo's symlink confinement checks stopped at the mount root itself, so a theme or module checked into themes/ (or a vendored module) could contain a symlink at a mount root (for example themes/mytheme/assets -> /some/dir/outside). Files behind such a symlink were readable during a site build through resources.Get, resources.Match and similar functions, and could be published to public/ via static mounts, bypassing the rule that theme and module mount sources must be local paths. Modules fetched via Go modules are not affected because Go module zips cannot contain

    Publication Mise à jour
  10. CVE-2026-100691

    Moyenne · CVSS 5.1EPSS 0,17%Aucun correctif publié

    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

    Publication Mise à jour
  11. CVE-2026-100690

    Élevée · CVSS 8.7EPSS 0,36%Aucun correctif publié

    Hugo v0.161.0 to v0.165.0 Arbitrary File Read via Symlinks

    Hugo versions from v0.161.0 through v0.165.0 run Node.js tools (css.PostCSS, css.TailwindCSS, js.Babel) under the Node.js permission model to restrict file system reads to the project directory and configured mounts. Because the Node.js permission model validates only the lexical path and follows symbolic links that point outside the allowed set, Hugo did not detect symlinks escaping the sandbox. An attacker who can contribute content to a Hugo project (for example via a pull request) can commit a symlink such as assets/css/x.css -> /etc/passwd together with a PostCSS plugin that reads it, allowing any file readable by the Hugo build process

    Publication Mise à jour
  12. CVE-2026-89259

    Critique · CVSS 9.3EPSS 0,41%Aucun correctif publié

    Hugo before v0.165.0 Insufficient Permission Restriction via TailwindCSS

    Hugo is a static site generator. From v0.161.0, Hugo executes Node tools under Node's permission model, but TailwindCSS — included in the default security.exec.allow list — requires a highly permissive configuration (--allow-addons, --allow-child-process, --allow-worker). As a result, the restrictions intended by the fix for GHSA-x597-9fr4-5857 could still be bypassed, allowing a Node tool invoked during a build to read and write files outside the project's working directory. Affected versions are those after v0.43; the issue was fixed in v0.165.0 by removing tailwindcss from the default security.exec.allow list. Users who do not use Tailwind

    Publication Mise à jour
  13. CVE-2026-89258

    Critique · CVSS 9.3EPSS 0,32%Aucun correctif publié

    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

    Publication Mise à jour
  14. CVE-2026-10618

    Moyenne · CVSS 4.8EPSS 0,21%Aucun correctif publié

    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

    Publication Mise à jour
  15. CVE-2026-10582

    Élevée · CVSS 8.3EPSS 0,32%Aucun correctif publié

    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

    Publication Mise à jour
  16. CVE-2026-75926

    Critique · CVSS 9.3EPSS 0,18%Aucun correctif publié

    Hugo 0.162.0 to 0.164.x - Node Permission Model Bypass via Default TailwindCSS Child-Process Grant

    Hugo 0.161.0 placed the Node asset pipelines behind the Node.js permission model so that code running through PostCSS, Babel, or TailwindCSS could not reach the file system outside the project directory. Hugo 0.162.0 added tailwindcss to the AllowChildProcess default in config/security/securityConfig.go, which makes nodePermissionArgs in common/hexec/exec.go append --allow-child-process whenever the tool being launched is named tailwindcss. TailwindCSS loads the site's tailwind.config.js through require at startup, so top-level code in that file executes inside the permitted Node process and can call child_process to spawn a shell. The spawne

    Publication Mise à jour
  17. CVE-2026-50135

    Moyenne · CVSS 6.9EPSS 0,27%Aucun correctif publié

    Hugo: Symlink confinement bypass in resources.Get

    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.

    Publication Mise à jour
  18. CVE-2026-50134

    Moyenne · CVSS 6.3EPSS 0,25%Aucun correctif publié

    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.

    Publication Mise à jour
  19. CVE-2026-50133

    Moyenne · CVSS 5.1EPSS 0,18%Aucun correctif publié

    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.

    Publication Mise à jour
  20. CVE-2026-58403

    Moyenne · CVSS 5.9EPSS 0,32%Aucun correctif publié

    Hugo symlink confinement bypass in os.ReadFile

    Hugo is a static site generator. From v0.123.0 through v0.163.0, Hugo's virtual filesystem is designed so that files under a mount cannot reach outside the mount tree, but a regression caused RootMappingFs.statRoot to call Stat, which follows symlinks, instead of Lstat, so a direct os.ReadFile "somefile" where somefile was a symlink pointing outside the mount would return the target's contents. This effectively let a symlink planted inside a theme or local mount read arbitrary files reachable to the user running hugo. This issue is fixed in v0.163.1.

    Publication Mise à jour

Vérifiez votre serveur

Comparez votre pile et les versions installées aux bases de vulnérabilités actuelles.

Vérifiez votre serveur →