Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-109597— Hugo v0.60.0 before v0.167.0 Stored XSS via Table of Contents Heading IDs

Quick assessment

Affected
gohugoio hugo
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Hugo 在 v0.60.0 至 v0.167.0(不含 v0.167.0)版本中存在一个存储型跨站脚本(XSS)漏洞,攻击者可通过构造恶意且显式指定的标题 ID,在 Markdown 内容中注入 HTML 代码。攻击者能够突破在 或 输出中对 属性的转义限制,从而在渲染后的页面中注入带有事件处理程序的 HTML 元素。

CVSS 5.4 · Medium EPSS 0.17% · P6

Possible ATT&CK Techniques 1 AI

T1059.007 · JavaScript

Affected Version Matrix 2

VendorProduct Version RangeStatus
gohugoio hugo 0.60.0< 0.167.0 affected
0.167.0 unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-109597

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Hugo v0.60.0 before v0.167.0 Stored XSS via Table of Contents Heading IDs
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
gohugoio hugo 0.60.0 ~ 0.167.0 -

II. Public POCs for CVE-2026-109597

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-109597

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-109597 (2)

Same Patch Batch · gohugoio · 2026-10-12 · 4 CVEs total

CVE-2026-109595 5.5 MEDIUM Hugo v0.84.0 before v0.167.0 Path Traversal via js.Build ESBuild Resolver
CVE-2026-109574 5.5 MEDIUM Hugo before v0.167.0 Path Traversal via css.Sass Import Fallback
CVE-2026-109596 5.5 MEDIUM Hugo from v0.162.0 before v0.167.0 Symlink File Disclosure via Nested Mount Ancestor

IV. Related Vulnerabilities

V. Comments for CVE-2026-109597

No comments yet


Leave a comment