Cross-site Scripting (XSS) Affecting hugo package, versions <0:0.166.0-0.1.hum1


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.19% (8th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL10-HUGO-20241622
  • published29 Sept 2026
  • disclosed26 Sept 2026

Introduced: 26 Sep 2026

NewCVE-2026-100694  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade RHEL:10 hugo to version 0:0.166.0-0.1.hum1 or higher.
This issue was patched in RHSA-2026:66266.

NVD Description

Note: Versions mentioned in the description apply only to the upstream hugo package and not the hugo package as distributed by RHEL. See How to fix? for RHEL:10 relevant fixed versions and status.

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 impacted. Version v0.166.0 fixes the issue by introducing a security.allowContent allowlist that denies text/org by default; sites that intentionally author Org Mode content can opt back in with [security] allowContent = ['.*'].

CVSS Base Scores

version 3.1