CVE-2026-140394

Source
https://cve.org/CVERecord?id=CVE-2026-140394
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-140394.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-140394
Aliases
Published
2026-12-01T14:29:12Z
Modified
2026-12-01T16:46:02Z
Severity
  • 5.1 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N CVSS Calculator
Summary
Hugo 0.140.2 before 0.170.0 Stored XSS via highlight shortcode wrapperClass
Details

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.

Database specific
{
    "cna_assigner":  "VulnCheck",
    "cwe_ids":  [
        "CWE-79"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140394.json"
}
References

Affected packages

Git / github.com/gohugoio/hugo

Affected ranges

Type
GIT
Repo
https://github.com/gohugoio/hugo
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "0.140.2"
                },
                {
                    "fixed":  "0.170.0"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        }
    ]
}

Affected versions

v0.*
v0.140.2
v0.141.0
v0.142.0
v0.143.0
v0.143.1
v0.144.0
v0.144.1
v0.145.0
v0.146.0
v0.146.1
v0.146.2
v0.146.3
v0.146.4
v0.146.5
v0.146.6
v0.146.7
v0.147.0
v0.147.1
v0.147.2
v0.147.3
v0.147.5
v0.147.6
v0.147.7
v0.147.8
v0.147.9
v0.148.0
v0.148.1
v0.148.2
v0.149.0
v0.149.1
v0.150.0
v0.150.1
v0.151.0
v0.151.1
v0.152.0
v0.152.1
v0.152.2
v0.153.0
v0.153.1
v0.153.2
v0.153.3
v0.153.4
v0.153.5
v0.154.0
v0.154.1
v0.154.2
v0.154.3
v0.154.4
v0.154.5
v0.155.0
v0.155.1
v0.155.2
v0.155.3
v0.156.0
v0.157.0
v0.158.0
v0.159.0
v0.159.1
v0.159.2
v0.160.0
v0.160.1
v0.161.0
v0.161.1
v0.162.0
v0.162.1
v0.163.0
v0.163.1
v0.163.2
v0.163.3
v0.164.0
v0.165.0
v0.166.0
v0.167.0
v0.168.0
v0.169.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-140394.json"