Hugo after 0.140.2 and before 0.170.0 contains a stored cross-site scripting vulnerability in the highlight shortcode and transform.Highlight template function, which write the wrapperClass option unescaped into the wrapping div's class attribute. Content authors can supply a wrapperClass value that closes the attribute and appends a script element, executing JavaScript in visitors' browsers under the site's origin.
References
Configurations
No configuration.
History
01 Dec 2026, 16:18
| Type | Values Removed | Values Added |
|---|---|---|
| References | () https://github.com/gohugoio/hugo/security/advisories/GHSA-4whp-jx7j-xvrm - |
01 Dec 2026, 15:18
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-12-01 15:18
Updated : 2026-12-01 16:18
NVD link : CVE-2026-140394
Mitre link : CVE-2026-140394
CVE.ORG link : CVE-2026-140394
JSON object : View
Products Affected
No product.
CWE
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
