Hugo 0.140.2 before 0.170.0 Stored XSS via highlight shortcode wrapperClass
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| gohugoiohugo |
≥ 0.140.2, < 0.170.0→ 0.170.0 |
0.170.0 |
| Gogithub.com/gohugoio/hugo |
≥ 0.140.2, < 0.170.0→ 0.170.0 |
0.170.0 |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- REDHAT Red Hat
- web github.com
- web github.com
- web github.com
- web github.com