MEDIUM6.1
GO-2026-5313
Hugo: XSS via text/html content files in github.com/gohugoio/hugo
Quick fix
GO-2026-5313 — github.com/gohugoio/hugo: upgrade to the fixed version with the command below.
go get github.com/gohugoio/hugo@v0.162.0Details
Hugo: XSS via text/html content files in github.com/gohugoio/hugo
Are you affected?
Enter the version of the package you're using.
Affected packages
Go/github.com/gohugoio/hugo
Introduced in:
0Fixed in: 0.162.0Fix
go get github.com/gohugoio/hugo@v0.162.0References
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:golang/github.com/gohugoio/hugo"]}'