Bug 2587938 (CVE-2026-140394) - CVE-2026-140394 github.com/gohugoio/hugo: hugo: Hugo: Stored cross-site scripting via unescaped wrapperClass option
Summary: CVE-2026-140394 github.com/gohugoio/hugo: hugo: Hugo: Stored cross-site scrip...
Keywords:
Status: NEW
Alias: CVE-2026-140394
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-12-01 14:43 UTC by OSIDB Bzimport
Modified: 2026-12-01 14:56 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-12-01 14:43:11 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.