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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-50133— Hugo: XSS via text/html content files

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.

gohugo hugo是gohugo团队开源的一个生成静态网站的框架。 GoHugo Hugo 0.162.0之前版本存在跨站脚本漏洞,该漏洞源于接受多种标记格式的内容文件,将映射为text/html媒体类型的文件直接输出到渲染页面,可能导致存储型跨站脚本攻击。

AI Predicted 7.5 Difficulty: Moderate EPSS 0.33% · P26

Possible ATT&CK Techniques 1 AI

T1132 · Data Encoding

Affected Version Matrix 1

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

I. Basic Information for CVE-2026-50133

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: XSS via text/html content files
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5
Vulnerability Title
GoHugo Hugo 跨站脚本漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
gohugo hugo是gohugo团队开源的一个生成静态网站的框架。 GoHugo Hugo 0.162.0之前版本存在跨站脚本漏洞,该漏洞源于接受多种标记格式的内容文件,将映射为text/html媒体类型的文件直接输出到渲染页面,可能导致存储型跨站脚本攻击。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
gohugoio hugo < 0.162.0 -

II. Public POCs for CVE-2026-50133

# 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-50133

登录查看更多情报信息。

Patches & Fixes for CVE-2026-50133 (1)

Vendor Advisories for CVE-2026-50133 (1)

Vendor Pages for CVE-2026-50133 (1)

Same Patch Batch · gohugoio · 2026-07-06 · 6 CVEs total

CVE-2026-58404 Hugo security.http.urls deny rules bypassed by alternate IPv4 encodings
CVE-2026-58402 Hugo default code block renderer XSS via unescaped code-fence language
CVE-2026-58403 Hugo symlink confinement bypass in os.ReadFile
CVE-2026-50134 Hugo: security.http.urls allow-list bypass via HTTP redirects
CVE-2026-50135 Hugo: Symlink confinement bypass in resources.Get

IV. Related Vulnerabilities

V. Comments for CVE-2026-50133

No comments yet


Leave a comment