🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #7389

Bug#1156300: hugo: CVE-2026-140394

#7389
From: Moritz Mühlenhoff
Date: Thu, 03 Dec 2026 22:00
30 lines
2576 bytes
Source: hugo
X-Debbugs-CC: team@security.debian.org
Severity: important
Tags: security

Hi,

The following vulnerability was published for hugo.

CVE-2026-140394[0]:
| 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.

 https://github.com/gohugoio/hugo/security/advisories/GHSA-4whp-jx7j-xvrm


If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-140394
    https://www.cve.org/CVERecord?id=CVE-2026-140394

Please adjust the affected versions in the BTS as needed.
Technical Details
Message-ID: <O6n0m-fOwq-9@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-nl.newsdeef.eu!srl.newsdeef.eu!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-nl.newsdeef.eu!srl.newsdeef.eu!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Moritz Mühlenhoff <jmm@inutil.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1156300: hugo: CVE-2026-140394
Date: Thu, 03 Dec 2026 23:00:02 +0100
Message-ID: <O6n0m-fOwq-9@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Thu Dec  3 21:59:13 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.651
Reply-To: Moritz Mühlenhoff <jmm@inutil.org>, 1156300@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: team@security.debian.org, team+pkg-go@tracker.debian.org
X-Debian-Pr-Message: report 1156300
X-Debian-Pr-Package: src:hugo
X-Debian-Pr-Keywords: security
X-Debian-Pr-Source: hugo
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2006841
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 30
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Thu, 3 Dec 2026 22:58:19 +0100
X-Original-Message-ID: <axHl-28ZW3AXLoOh@pisco.westfalen.local>