{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0.140.2"
                  },
                  {
                    "fixed": "0.170.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "aae02ca612a02e085c08366a9c9279f4abb39d94"
            },
            {
              "fixed": "f7aa05f0f521611aa960b2da56e1870ea04f57b2"
            }
          ],
          "repo": "https://github.com/gohugoio/hugo",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-4whp-jx7j-xvrm"
  ],
  "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"
  },
  "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.",
  "id": "CVE-2026-140394",
  "modified": "2026-12-01T16:46:02.518036636Z",
  "published": "2026-12-01T14:29:12.120Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140394.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/gohugoio/hugo/security/advisories/GHSA-4whp-jx7j-xvrm"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-140394"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/hugo-0.140.2-before-0.170.0-stored-xss-via-highlight-shortcode-wrapperclass"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Hugo 0.140.2 before 0.170.0 Stored XSS via highlight shortcode wrapperClass"
}