Back to CVE records
Medium 5.1Published Jul 6, 2026

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

Updated under an hour ago ()

Does this affect you?

It affects gohugoio hugo and 1 other product. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

CVSS
5.1 MEDIUM (v4.0, CNA)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
Weakness (CWE)
CWE-79
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
GitHub_M
NVD analysis
Analyzed
Record last updated
Jul 7, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
gohugoio hugo
gohugoio:hugo (from the name)
before 0.162.0
CNA record
gohugo hugo
gohugo:hugo
before 0.162.0
NVD

References

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.