{"id":"CVE-2026-100691","aliases":["DEBIAN-CVE-2026-100691","UBUNTU-CVE-2026-100691"],"summary":"Hugo before 0.166.0 Stored XSS via lineAnchors code block option","published_at":"2026-09-26T13:23:50.149Z","modified_at":"2026-10-17T12:57:52.514293Z","products":[{"slug":"rhel","name":"Red Hat Enterprise Linux","category":"red-hat"}],"rating":{"severity":"medium","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","attack_path":"internet_authenticated","user_interaction":true,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Moderate"}]},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.00171999994199723,"percentile":0.06720999628305435,"date":"2026-11-19T00:00:00Z"},"priority":5.9,"details":"Hugo versions 0.75.0 through 0.165.x contain a stored cross-site scripting vulnerability: the syntax highlighter does not escape the `lineAnchors` option before passing it to Chroma, which writes the value verbatim into the `id` and `href` attributes of the generated line-number markup. A crafted `lineAnchors` value supplied as a Markdown code fence attribute (or passed to the `highlight` template function) results in unescaped HTML in the rendered page, allowing arbitrary JavaScript to execute in the browsers of visitors to the generated site. This affects sites that build and publish Markdown from untrusted contributors; Hugo's security model otherwise considers content trusted input. Fixed in 0.166.0, where the `lineAnchors` value is HTML-escaped before being passed to Chroma.","affected_stack":[{"ecosystem":"Red Hat:enterprise_linux:10","package":"grafana","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-100691","relation":"self"},{"ecosystem":"Red Hat:hummingbird:1","package":"hugo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.166.0-0.1.hum1"}]}],"fixed":["0:0.166.0-0.1.hum1"],"provider":"redhat-vex","source":"CVE-2026-100691","relation":"self"},{"ecosystem":"Red Hat:hummingbird:1","package":"hugo","purl":"pkg:rpm/redhat/hugo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.166.0-0.1.hum1"}]}],"fixed":["0:0.166.0-0.1.hum1"],"provider":"osv","source":"RHSA-2026:66266","relation":"upstream"}],"affected_other":[{"ecosystem":"CVE","package":"gohugoio/hugo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.75.0"},{"fixed":"0.166.0"}]}],"fixed":["0.166.0"],"provider":"cvelistv5","source":"CVE-2026-100691","relation":"self"},{"ecosystem":"Debian:12","package":"hugo","purl":"pkg:deb/debian/hugo?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.111.3-1","0.112.7-1","0.113.0-1","0.113.0-2","0.113.0-3","0.114.1-1","0.114.1-2","0.115.4-1","0.116.1-1","0.117.0-1","0.118.2-1","0.119.0-1","0.119.0-2","0.120.3-1","0.120.4-1","0.121.1-1","0.121.2-1","0.122.0-1","0.123.3-1","0.123.7-1","0.123.8-1","0.123.8-2","0.124.1-1","0.125.4-1","0.125.5-1","0.125.6-1","0.125.7-1","0.126.1-1","0.126.2-1","0.126.3-1","0.127.0-1","0.128.2-1","0.128.2-2","0.129.0-1","0.129.0-2","0.130.0-1","0.130.0-2","0.131.0-1","0.131.0-2","0.150.0-1","0.150.1-1","0.151.0-1","0.151.1-1","0.151.2-1","0.152.1-1","0.152.2-1","0.153.0-1","0.153.1-1","0.153.1-2","0.153.1-3","0.153.2-1","0.154.1-1","0.154.2-1","0.154.2-2","0.154.3-1","0.154.5-1","0.155.1-1","0.155.2-1","0.155.3-1","0.157.0-1","0.157.0-2","0.157.0-3","0.158.0-1","0.158.0-2","0.158.0-3","0.159.0-1","0.159.1-1","0.159.2-1","0.160.0-1","0.160.0-2","0.160.1-1","0.161.0-1","0.161.1-1","0.162.1-1","0.162.1-2","0.162.1-3","0.162.1-4","0.162.1-5","0.162.1-6","0.162.1-7","0.165.0-1","0.165.0-2","0.165.0-3","0.166.0-1","0.166.0-2","0.167.0-1","0.167.0-2","0.167.0-3","0.167.0-4","0.167.0-5","0.167.0-6","0.167.0-7"],"provider":"osv","source":"DEBIAN-CVE-2026-100691","relation":"self"},{"ecosystem":"Debian:13","package":"hugo","purl":"pkg:deb/debian/hugo?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.131.0-1","0.131.0-2","0.150.0-1","0.150.1-1","0.151.0-1","0.151.1-1","0.151.2-1","0.152.1-1","0.152.2-1","0.153.0-1","0.153.1-1","0.153.1-2","0.153.1-3","0.153.2-1","0.154.1-1","0.154.2-1","0.154.2-2","0.154.3-1","0.154.5-1","0.155.1-1","0.155.2-1","0.155.3-1","0.157.0-1","0.157.0-2","0.157.0-3","0.158.0-1","0.158.0-2","0.158.0-3","0.159.0-1","0.159.1-1","0.159.2-1","0.160.0-1","0.160.0-2","0.160.1-1","0.161.0-1","0.161.1-1","0.162.1-1","0.162.1-2","0.162.1-3","0.162.1-4","0.162.1-5","0.162.1-6","0.162.1-7","0.165.0-1","0.165.0-2","0.165.0-3","0.166.0-1","0.166.0-2","0.167.0-1","0.167.0-2","0.167.0-3","0.167.0-4","0.167.0-5","0.167.0-6","0.167.0-7"],"provider":"osv","source":"DEBIAN-CVE-2026-100691","relation":"self"},{"ecosystem":"Debian:14","package":"hugo","purl":"pkg:deb/debian/hugo?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.166.0-1"}]}],"versions":["0.131.0-1","0.131.0-2","0.150.0-1","0.150.1-1","0.151.0-1","0.151.1-1","0.151.2-1","0.152.1-1","0.152.2-1","0.153.0-1","0.153.1-1","0.153.1-2","0.153.1-3","0.153.2-1","0.154.1-1","0.154.2-1","0.154.2-2","0.154.3-1","0.154.5-1","0.155.1-1","0.155.2-1","0.155.3-1","0.157.0-1","0.157.0-2","0.157.0-3","0.158.0-1","0.158.0-2","0.158.0-3","0.159.0-1","0.159.1-1","0.159.2-1","0.160.0-1","0.160.0-2","0.160.1-1","0.161.0-1","0.161.1-1","0.162.1-1","0.162.1-2","0.162.1-3","0.162.1-4","0.162.1-5","0.162.1-6","0.162.1-7","0.165.0-1","0.165.0-2","0.165.0-3"],"fixed":["0.166.0-1"],"provider":"osv","source":"DEBIAN-CVE-2026-100691","relation":"self"},{"ecosystem":"NVD","package":"gohugo:hugo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.75.0"},{"fixed":"0.166.0"}]}],"fixed":["0.166.0"],"provider":"nvd","source":"CVE-2026-100691","relation":"self"},{"ecosystem":"Ubuntu:16.04:LTS","package":"hugo","purl":"pkg:deb/ubuntu/hugo?arch=source&distro=xenial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.15+git20160109.147.dd1d655-1","0.15+git20160109.147.dd1d655-2","0.15+git20160128.179.5def6d9-1","0.15+git20160206.203.ed23711-1"],"provider":"osv","source":"UBUNTU-CVE-2026-100691","relation":"self"},{"ecosystem":"Ubuntu:18.04:LTS","package":"hugo","purl":"pkg:deb/ubuntu/hugo?arch=source&distro=bionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.25.1-2","0.26-1","0.35-1","0.37.1-1","0.38-1","0.39-1","0.40-1","0.40.1-1"],"provider":"osv","source":"UBUNTU-CVE-2026-100691","relation":"self"},{"ecosystem":"Ubuntu:20.04:LTS","package":"hugo","purl":"pkg:deb/ubuntu/hugo?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.57.2-1","0.58.3-1","0.59.1-1.1","0.68.3-1"],"provider":"osv","source":"UBUNTU-CVE-2026-100691","relation":"self"},{"ecosystem":"Ubuntu:22.04:LTS","package":"hugo","purl":"pkg:deb/ubuntu/hugo?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.80.0-6","0.89.4-2","0.90.0-1","0.90.1-1","0.91.0-1","0.91.2-1","0.92.0-1","0.92.1-1build1","0.92.2-1","0.92.2-1ubuntu0.1"],"provider":"osv","source":"UBUNTU-CVE-2026-100691","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"hugo","purl":"pkg:deb/ubuntu/hugo?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.131.0-1","0.152.2-1","0.153.1-3","0.153.2-1","0.154.2-2","0.154.3-1","0.154.5-1"],"provider":"osv","source":"UBUNTU-CVE-2026-100691","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"hugo","purl":"pkg:deb/ubuntu/hugo?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.154.5-1","0.162.1-5","0.162.1-7"],"provider":"osv","source":"UBUNTU-CVE-2026-100691","relation":"self"},{"ecosystem":"Ubuntu:Pro:24.04:LTS","package":"hugo","purl":"pkg:deb/ubuntu/hugo?arch=source&distro=esm-apps%2Fnoble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.113.0-3","0.119.0-2","0.120.3-1","0.120.4-1","0.121.2-1","0.122.0-1","0.123.7-1build1","0.123.7-1ubuntu0.1","0.123.7-1ubuntu0.2","0.123.7-1ubuntu0.2+esm1","0.123.7-1ubuntu0.3","0.123.7-1ubuntu0.3+esm1","0.123.7-1ubuntu0.3+esm2"],"provider":"osv","source":"UBUNTU-CVE-2026-100691","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","cpe":"cpe:/a:redhat:enterprise_linux:10","status":"affected","packages":["grafana"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-100691"},{"vendor":"Red Hat","product":"Red Hat Hardened Images","cpe":"cpe:/a:redhat:hummingbird:1","status":"fixed","packages":["hugo"],"package_count":1,"fixed":["hugo-0.166.0-0.1.hum1"],"advisories":["RHSA-2026:66266"],"provider":"redhat-vex","source":"CVE-2026-100691"},{"vendor":"Red Hat","product":"Red Hat Hardened Images","cpe":"cpe:/a:redhat:hummingbird:1","status":"not_affected","packages":["grafana12.4","grafana13.1","grafana13.2"],"package_count":3,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2026-100691"},{"vendor":"Red Hat","product":"Red Hat OpenShift GitOps","cpe":"cpe:/a:redhat:openshift_gitops:1","status":"affected","packages":["openshift-gitops-1/argocd-rhel8","openshift-gitops-1/argocd-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-100691"},{"vendor":"Red Hat","product":"Red Hat OpenStack Platform 18.0","cpe":"cpe:/a:redhat:openstack:18.0","status":"affected","packages":["rhoso-operators/openstack-operator-bundle"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-100691"}],"records":[{"provider":"osv","source_id":"RHSA-2026:66266","relation":"upstream","url":"https://osv.dev/vulnerability/RHSA-2026:66266","license":"CC-BY-4.0","published_at":"2026-09-10T10:17:14Z","modified_at":"2026-11-13T18:41:10Z","summary":"Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","source":"RHSA-2026:66266"}],"affected":[{"ecosystem":"Red Hat:hummingbird:1","package":"hugo","purl":"pkg:rpm/redhat/hugo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.166.0-0.1.hum1"}]}],"fixed":["0:0.166.0-0.1.hum1"],"provider":"osv","source":"RHSA-2026:66266","relation":"upstream"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:66266"},{"type":"ARTICLE","url":"https://images.redhat.com/"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2026-10618"},{"type":"ARTICLE","url":"https://access.redhat.com/security/updates/classification/"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2026-10582"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2026-44301"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2026-33812"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2026-100693"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2026-100690"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2026-100694"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2026-100692"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2026-100691"},{"type":"ADVISORY","url":"https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_66266.json"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2521803"},{"type":"ADVISORY","url":"https://www.cve.org/CVERecord?id=CVE-2026-10582"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-10582"},{"type":"ARTICLE","url":"https://github.com/gohugoio/hugo"},{"type":"ARTICLE","url":"https://github.com/gohugoio/hugo/blob/v0.165.0/config/security/securityConfig.go"},{"type":"ARTICLE","url":"https://github.com/gohugoio/hugo/blob/v0.165.0/resources/resource_factories/create/create.go"},{"type":"ARTICLE","url":"https://www.vulncheck.com/advisories/hugo-through-server-side-request-forgery-via-security-http-urls-lacking-destination-address-validation"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2521802"},{"type":"ADVISORY","url":"https://www.cve.org/CVERecord?id=CVE-2026-10618"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-10618"},{"type":"ARTICLE","url":"https://github.com/gohugoio/hugo/blob/v0.165.0/markup/goldmark/codeblocks/render.go"},{"type":"ARTICLE","url":"https://github.com/gohugoio/hugo/blob/v0.165.0/markup/highlight/highlight.go"},{"type":"ARTICLE","url":"https://github.com/gohugoio/hugo/blob/v0.165.0/markup/internal/attributes/attributes.go"},{"type":"ARTICLE","url":"https://www.vulncheck.com/advisories/hugo-through-stored-cross-site-scripting-via-unescaped-code-fence-attribute-values"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2460227"},{"type":"ADVISORY","url":"https://www.cve.org/CVERecord?id=CVE-2026-33812"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33812"},{"type":"ARTICLE","url":"https://go.dev/cl/761180"},{"type":"ARTICLE","url":"https://go.dev/issue/78382"},{"type":"ADVISORY","url":"https://pkg.go.dev/vuln/GO-2026-4962"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2476862"},{"type":"ADVISORY","url":"https://www.cve.org/CVERecord?id=CVE-2026-44301"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44301"},{"type":"ARTICLE","url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-x597-9fr4-5857"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2541815"},{"type":"ADVISORY","url":"https://www.cve.org/CVERecord?id=CVE-2026-100690"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100690"},{"type":"ARTICLE","url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-x3mx-cm49-8m9c"},{"type":"ARTICLE","url":"https://www.vulncheck.com/advisories/hugo-0.161.0-to-0.165.0-arbitrary-file-read-via-symlinks"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2541895"},{"type":"ADVISORY","url":"https://www.cve.org/CVERecord?id=CVE-2026-100691"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100691"},{"type":"ARTICLE","url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-q4xf-287f-98r8"},{"type":"ARTICLE","url":"https://www.vulncheck.com/advisories/hugo-before-0.166.0-stored-xss-via-lineanchors-code-block-option"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2541910"},{"type":"ADVISORY","url":"https://www.cve.org/CVERecord?id=CVE-2026-100692"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100692"},{"type":"ARTICLE","url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-797m-7j5g-3rpr"},{"type":"ARTICLE","url":"https://www.vulncheck.com/advisories/hugo-before-0.166.0-path-traversal-via-symlinked-mount-roots"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2541830"},{"type":"ADVISORY","url":"https://www.cve.org/CVERecord?id=CVE-2026-100693"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100693"},{"type":"ARTICLE","url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-pmrv-x7gp-2rjw"},{"type":"ARTICLE","url":"https://www.vulncheck.com/advisories/hugo-0.162.0-before-0.166.0-ip-literal-deny-rule-bypass"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2541804"},{"type":"ADVISORY","url":"https://www.cve.org/CVERecord?id=CVE-2026-100694"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100694"},{"type":"ARTICLE","url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-pq74-mj4h-cjq2"},{"type":"ARTICLE","url":"https://www.vulncheck.com/advisories/hugo-before-0.166.0-cross-site-scripting-via-text-org"}]},{"provider":"cvelistv5","source_id":"CVE-2026-100691","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-100691","license":"CC-BY-4.0","published_at":"2026-09-26T13:23:50.149Z","modified_at":"2026-09-28T17:51:34.652Z","summary":"Hugo before 0.166.0 Stored XSS via lineAnchors code block option","details":"Hugo versions 0.75.0 through 0.165.x contain a stored cross-site scripting vulnerability: the syntax highlighter does not escape the `lineAnchors` option before passing it to Chroma, which writes the value verbatim into the `id` and `href` attributes of the generated line-number markup. A crafted `lineAnchors` value supplied as a Markdown code fence attribute (or passed to the `highlight` template function) results in unescaped HTML in the rendered page, allowing arbitrary JavaScript to execute in the browsers of visitors to the generated site. This affects sites that build and publish Markdown from untrusted contributors; Hugo's security model otherwise considers content trusted input. Fixed in 0.166.0, where the `lineAnchors` value is HTML-escaped before being passed to Chroma.","severity":[{"type":"CVSS_V4","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","source":"CVE-2026-100691"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","source":"CVE-2026-100691"}],"affected":[{"ecosystem":"CVE","package":"gohugoio/hugo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.75.0"},{"fixed":"0.166.0"}]}],"fixed":["0.166.0"],"provider":"cvelistv5","source":"CVE-2026-100691","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-q4xf-287f-98r8"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/hugo-before-0.166.0-stored-xss-via-lineanchors-code-block-option"}]},{"provider":"nvd","source_id":"CVE-2026-100691","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100691","severity":[],"affected":[{"ecosystem":"NVD","package":"gohugo:hugo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.75.0"},{"fixed":"0.166.0"}]}],"fixed":["0.166.0"],"provider":"nvd","source":"CVE-2026-100691","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DEBIAN-CVE-2026-100691","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-100691","published_at":"2026-09-26T14:16:53.71Z","modified_at":"2026-10-12T05:00:10.608195Z","details":"Hugo versions 0.75.0 through 0.165.x contain a stored cross-site scripting vulnerability: the syntax highlighter does not escape the `lineAnchors` option before passing it to Chroma, which writes the value verbatim into the `id` and `href` attributes of the generated line-number markup. A crafted `lineAnchors` value supplied as a Markdown code fence attribute (or passed to the `highlight` template function) results in unescaped HTML in the rendered page, allowing arbitrary JavaScript to execute in the browsers of visitors to the generated site. This affects sites that build and publish Markdown from untrusted contributors; Hugo's security model otherwise considers content trusted input. Fixed in 0.166.0, where the `lineAnchors` value is HTML-escaped before being passed to Chroma.","severity":[{"type":"CVSS_V4","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"DEBIAN-CVE-2026-100691"}],"affected":[{"ecosystem":"Debian:12","package":"hugo","purl":"pkg:deb/debian/hugo?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.111.3-1","0.112.7-1","0.113.0-1","0.113.0-2","0.113.0-3","0.114.1-1","0.114.1-2","0.115.4-1","0.116.1-1","0.117.0-1","0.118.2-1","0.119.0-1","0.119.0-2","0.120.3-1","0.120.4-1","0.121.1-1","0.121.2-1","0.122.0-1","0.123.3-1","0.123.7-1","0.123.8-1","0.123.8-2","0.124.1-1","0.125.4-1","0.125.5-1","0.125.6-1","0.125.7-1","0.126.1-1","0.126.2-1","0.126.3-1","0.127.0-1","0.128.2-1","0.128.2-2","0.129.0-1","0.129.0-2","0.130.0-1","0.130.0-2","0.131.0-1","0.131.0-2","0.150.0-1","0.150.1-1","0.151.0-1","0.151.1-1","0.151.2-1","0.152.1-1","0.152.2-1","0.153.0-1","0.153.1-1","0.153.1-2","0.153.1-3","0.153.2-1","0.154.1-1","0.154.2-1","0.154.2-2","0.154.3-1","0.154.5-1","0.155.1-1","0.155.2-1","0.155.3-1","0.157.0-1","0.157.0-2","0.157.0-3","0.158.0-1","0.158.0-2","0.158.0-3","0.159.0-1","0.159.1-1","0.159.2-1","0.160.0-1","0.160.0-2","0.160.1-1","0.161.0-1","0.161.1-1","0.162.1-1","0.162.1-2","0.162.1-3","0.162.1-4","0.162.1-5","0.162.1-6","0.162.1-7","0.165.0-1","0.165.0-2","0.165.0-3","0.166.0-1","0.166.0-2","0.167.0-1","0.167.0-2","0.167.0-3","0.167.0-4","0.167.0-5","0.167.0-6","0.167.0-7"],"provider":"osv","source":"DEBIAN-CVE-2026-100691","relation":"self"},{"ecosystem":"Debian:13","package":"hugo","purl":"pkg:deb/debian/hugo?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.131.0-1","0.131.0-2","0.150.0-1","0.150.1-1","0.151.0-1","0.151.1-1","0.151.2-1","0.152.1-1","0.152.2-1","0.153.0-1","0.153.1-1","0.153.1-2","0.153.1-3","0.153.2-1","0.154.1-1","0.154.2-1","0.154.2-2","0.154.3-1","0.154.5-1","0.155.1-1","0.155.2-1","0.155.3-1","0.157.0-1","0.157.0-2","0.157.0-3","0.158.0-1","0.158.0-2","0.158.0-3","0.159.0-1","0.159.1-1","0.159.2-1","0.160.0-1","0.160.0-2","0.160.1-1","0.161.0-1","0.161.1-1","0.162.1-1","0.162.1-2","0.162.1-3","0.162.1-4","0.162.1-5","0.162.1-6","0.162.1-7","0.165.0-1","0.165.0-2","0.165.0-3","0.166.0-1","0.166.0-2","0.167.0-1","0.167.0-2","0.167.0-3","0.167.0-4","0.167.0-5","0.167.0-6","0.167.0-7"],"provider":"osv","source":"DEBIAN-CVE-2026-100691","relation":"self"},{"ecosystem":"Debian:14","package":"hugo","purl":"pkg:deb/debian/hugo?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.166.0-1"}]}],"versions":["0.131.0-1","0.131.0-2","0.150.0-1","0.150.1-1","0.151.0-1","0.151.1-1","0.151.2-1","0.152.1-1","0.152.2-1","0.153.0-1","0.153.1-1","0.153.1-2","0.153.1-3","0.153.2-1","0.154.1-1","0.154.2-1","0.154.2-2","0.154.3-1","0.154.5-1","0.155.1-1","0.155.2-1","0.155.3-1","0.157.0-1","0.157.0-2","0.157.0-3","0.158.0-1","0.158.0-2","0.158.0-3","0.159.0-1","0.159.1-1","0.159.2-1","0.160.0-1","0.160.0-2","0.160.1-1","0.161.0-1","0.161.1-1","0.162.1-1","0.162.1-2","0.162.1-3","0.162.1-4","0.162.1-5","0.162.1-6","0.162.1-7","0.165.0-1","0.165.0-2","0.165.0-3"],"fixed":["0.166.0-1"],"provider":"osv","source":"DEBIAN-CVE-2026-100691","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-100691"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2026-100691","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-100691","license":"CC-BY-SA-4.0","published_at":"2026-09-26T14:16:00Z","modified_at":"2026-10-17T12:57:52.514293Z","details":"Hugo versions 0.75.0 through 0.165.x contain a stored cross-site scripting vulnerability: the syntax highlighter does not escape the `lineAnchors` option before passing it to Chroma, which writes the value verbatim into the `id` and `href` attributes of the generated line-number markup. A crafted `lineAnchors` value supplied as a Markdown code fence attribute (or passed to the `highlight` template function) results in unescaped HTML in the rendered page, allowing arbitrary JavaScript to execute in the browsers of visitors to the generated site. This affects sites that build and publish Markdown from untrusted contributors; Hugo's security model otherwise considers content trusted input. Fixed in 0.166.0, where the `lineAnchors` value is HTML-escaped before being passed to Chroma.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","source":"UBUNTU-CVE-2026-100691"},{"type":"CVSS_V4","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","source":"UBUNTU-CVE-2026-100691"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2026-100691"}],"affected":[{"ecosystem":"Ubuntu:16.04:LTS","package":"hugo","purl":"pkg:deb/ubuntu/hugo?arch=source&distro=xenial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.15+git20160109.147.dd1d655-1","0.15+git20160109.147.dd1d655-2","0.15+git20160128.179.5def6d9-1","0.15+git20160206.203.ed23711-1"],"provider":"osv","source":"UBUNTU-CVE-2026-100691","relation":"self"},{"ecosystem":"Ubuntu:18.04:LTS","package":"hugo","purl":"pkg:deb/ubuntu/hugo?arch=source&distro=bionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.25.1-2","0.26-1","0.35-1","0.37.1-1","0.38-1","0.39-1","0.40-1","0.40.1-1"],"provider":"osv","source":"UBUNTU-CVE-2026-100691","relation":"self"},{"ecosystem":"Ubuntu:20.04:LTS","package":"hugo","purl":"pkg:deb/ubuntu/hugo?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.57.2-1","0.58.3-1","0.59.1-1.1","0.68.3-1"],"provider":"osv","source":"UBUNTU-CVE-2026-100691","relation":"self"},{"ecosystem":"Ubuntu:22.04:LTS","package":"hugo","purl":"pkg:deb/ubuntu/hugo?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.80.0-6","0.89.4-2","0.90.0-1","0.90.1-1","0.91.0-1","0.91.2-1","0.92.0-1","0.92.1-1build1","0.92.2-1","0.92.2-1ubuntu0.1"],"provider":"osv","source":"UBUNTU-CVE-2026-100691","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"hugo","purl":"pkg:deb/ubuntu/hugo?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.131.0-1","0.152.2-1","0.153.1-3","0.153.2-1","0.154.2-2","0.154.3-1","0.154.5-1"],"provider":"osv","source":"UBUNTU-CVE-2026-100691","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"hugo","purl":"pkg:deb/ubuntu/hugo?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.154.5-1","0.162.1-5","0.162.1-7"],"provider":"osv","source":"UBUNTU-CVE-2026-100691","relation":"self"},{"ecosystem":"Ubuntu:Pro:24.04:LTS","package":"hugo","purl":"pkg:deb/ubuntu/hugo?arch=source&distro=esm-apps%2Fnoble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.113.0-3","0.119.0-2","0.120.3-1","0.120.4-1","0.121.2-1","0.122.0-1","0.123.7-1build1","0.123.7-1ubuntu0.1","0.123.7-1ubuntu0.2","0.123.7-1ubuntu0.2+esm1","0.123.7-1ubuntu0.3","0.123.7-1ubuntu0.3+esm1","0.123.7-1ubuntu0.3+esm2"],"provider":"osv","source":"UBUNTU-CVE-2026-100691","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-100691"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-100691"},{"type":"REPORT","url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-q4xf-287f-98r8"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/hugo-before-0.166.0-stored-xss-via-lineanchors-code-block-option"}]},{"provider":"redhat-vex","source_id":"CVE-2026-100691","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-100691","license":"CC-BY-4.0","published_at":"2026-09-26T13:23:50.149Z","modified_at":"2026-09-28T14:27:01Z","summary":"github.com/gohugoio/hugo: Hugo: Stored cross-site scripting via unescaped lineAnchors option","details":"A flaw was found in Hugo. The syntax highlighter fails to properly sanitize the lineAnchors option, resulting in a stored Cross-Site Scripting (XSS) vulnerability. A remote attacker capable of submitting Markdown content can exploit this by supplying a crafted lineAnchors code block attribute. When the site is generated and published, this flaw allows arbitrary script execution in the browsers of users visiting the affected pages.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","source":"CVE-2026-100691"},{"type":"Red Hat","score":"Moderate","source":"CVE-2026-100691"}],"affected":[{"ecosystem":"Red Hat:enterprise_linux:10","package":"grafana","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-100691","relation":"self"},{"ecosystem":"Red Hat:hummingbird:1","package":"hugo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.166.0-0.1.hum1"}]}],"fixed":["0:0.166.0-0.1.hum1"],"provider":"redhat-vex","source":"CVE-2026-100691","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","cpe":"cpe:/a:redhat:enterprise_linux:10","status":"affected","packages":["grafana"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-100691"},{"vendor":"Red Hat","product":"Red Hat Hardened Images","cpe":"cpe:/a:redhat:hummingbird:1","status":"fixed","packages":["hugo"],"package_count":1,"fixed":["hugo-0.166.0-0.1.hum1"],"advisories":["RHSA-2026:66266"],"provider":"redhat-vex","source":"CVE-2026-100691"},{"vendor":"Red Hat","product":"Red Hat Hardened Images","cpe":"cpe:/a:redhat:hummingbird:1","status":"not_affected","packages":["grafana12.4","grafana13.1","grafana13.2"],"package_count":3,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2026-100691"},{"vendor":"Red Hat","product":"Red Hat OpenShift GitOps","cpe":"cpe:/a:redhat:openshift_gitops:1","status":"affected","packages":["openshift-gitops-1/argocd-rhel8","openshift-gitops-1/argocd-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-100691"},{"vendor":"Red Hat","product":"Red Hat OpenStack Platform 18.0","cpe":"cpe:/a:redhat:openstack:18.0","status":"affected","packages":["rhoso-operators/openstack-operator-bundle"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-100691"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-100691.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-100691"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2541895"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-100691"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100691"},{"type":"WEB","url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-q4xf-287f-98r8"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/hugo-before-0.166.0-stored-xss-via-lineanchors-code-block-option"}]}],"references":[{"type":"ADVISORY","url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-q4xf-287f-98r8"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/hugo-before-0.166.0-stored-xss-via-lineanchors-code-block-option"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-100691"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-100691"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-100691"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-100691.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-100691"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2541895"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100691"}],"sources":[{"provider":"osv","source_id":"RHSA-2026:66266","url":"https://osv.dev/vulnerability/RHSA-2026:66266","license":"CC-BY-4.0","modified_at":"2026-11-13T18:41:10Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2026-100691","url":"https://www.cve.org/CVERecord?id=CVE-2026-100691","license":"CC-BY-4.0","modified_at":"2026-09-28T17:51:34.652Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2026-100691","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100691","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2026-100691","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-100691","modified_at":"2026-10-12T05:00:10.608195Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2026-100691","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-100691","license":"CC-BY-SA-4.0","modified_at":"2026-10-17T12:57:52.514293Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-100691","url":"https://access.redhat.com/security/cve/CVE-2026-100691","license":"CC-BY-4.0","modified_at":"2026-09-28T14:27:01Z","relation":"self"}]}
