FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

www/gohugo -- CWE-79: XSS vulnerabilities

Affected packages
gohugo < 0.162.0,1

Details

VuXML ID 20d59b47-5ba3-11f1-bf1b-b42e991fc52e
Discovery 2026-05-07
Entry 2026-05-29

https://go.dev/issue/78913 reports:

CVE-2026-27142 fixed a vulnerability in which URLs were not correctly escaped inside of a <meta> tag's <content> attribute. If the URL content were to insert ASCII whitespaces around the '=' rune inside of the <content> attribute, the escaper would fail to similarly escape it, leading to XSS.

If a trusted template author were to write a <script> tag containing an empty 'type' attribute or a 'type' attribute with an ASCII whitespace, the execution of the template would incorrectly escape any data passed into the <script> block.

References

CVE Name CVE-2026-39823
CVE Name CVE-2026-39826
URL https://cveawg.mitre.org/api/cve/CVE-2026-39823
URL https://cveawg.mitre.org/api/cve/CVE-2026-39826