cve.bz

CVE-2026-78661 golang.org/x/net golang.org/x/net/html: Inefficient Algorithmic Complexity

7.5 highEPSS 0.4%Fix available

High (7.5) in golang.org/x/net golang.org/x/net/html. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in golang.org/x/net 0.62.0.

On this page
When coalescing adjacent text nodes in addText and fosterParent, appending to an existing TextNode's Data via string concatenation (n.Data += text) reallocated and copied the accumulated string on every token. Inputs containing many short text runs separated by ignored end tags (such as "a</x>") caused O(n^2) allocations and byte copies. Accumulate coalesced text in per-node byte slices during parsing and materialize Data strings once at the end of parse.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
0.4% (unchanged from 0.4% a week ago) estimated probability of exploitation activity in the next 30 days; 36th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-11-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-407 Inefficient Algorithmic Complexity
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-78661 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-78661?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-78661?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-78661 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

  • golang.org/x/net:golang.org/x/net/html

Versions

From the CNA's record in the CVE List.

ProductAffected
golang.org/x/net/htmlbefore 0.62.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2026-6860Gogolang.org/x/net<0.62.00.62.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13golang-golang-x-netno fix listedDEBIAN-CVE-2026-78661
Debian14golang-golang-x-net1:0.62.0-1DEBIAN-CVE-2026-78661
Ubuntu14.04:LTSgolang-1.10no fix listedUBUNTU-CVE-2026-78661
Ubuntu16.04:LTSgolang-1.6, golang-1.10no fix listedUBUNTU-CVE-2026-78661
Ubuntu18.04:LTSgolang-1.8, golang-1.9, golang-1.10no fix listedUBUNTU-CVE-2026-78661
Ubuntu20.04:LTSlxd, golang-1.13, golang-1.14 and 4 moreno fix listedUBUNTU-CVE-2026-78661
Ubuntu22.04:LTSadsys, containerd, golang-1.17 and 11 moreno fix listedUBUNTU-CVE-2026-78661
Ubuntu24.04:LTSadsys, golang-1.21, golang-1.22 and 6 moreno fix listedUBUNTU-CVE-2026-78661
Ubuntu26.04:LTSadsys, golang-1.23, golang-1.24 and 5 moreno fix listedUBUNTU-CVE-2026-78661
Ubuntu26.10adsys, containerd, golang-1.26 and 4 moreno fix listedUBUNTU-CVE-2026-78661
UbuntuPro:16.04:LTSlxd, juju-core, containerd and 5 moreno fix listedUBUNTU-CVE-2026-78661
UbuntuPro:18.04:LTSlxd, containerd, golang-1.13 and 5 moreno fix listedUBUNTU-CVE-2026-78661
UbuntuPro:20.04:LTSadsys, containerd, golang-1.16 and 3 moreno fix listedUBUNTU-CVE-2026-78661
UbuntuPro:22.04:LTSgolang-1.13no fix listedUBUNTU-CVE-2026-78661
2 more for Ubuntu in the JSON and on Ubuntu's page.
SUSELinux Enterprise Micro 5.5, Linux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5 and 2 moregoogle-osconfig-agent20261105.03-150000.1.83.1SUSE-SU-2026:5246-1
SUSELinux Enterprise Module for Public Cloud 12google-osconfig-agent20261105.03-1.76.1SUSE-SU-2026:5245-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0govulncheck-vulndb0.0.20261105T234957-160000.1.1SUSE-SU-2026:24730-1
openSUSETumbleweedamazon-cloudwatch-agent1.300074.0-1.1openSUSE-SU-2026:12425-1
openSUSETumbleweedgoogle-osconfig-agent20261103.02-1.1openSUSE-SU-2026:12430-1
Azure Linux3application-gateway-kubernetes-ingressno fix listedAZL-111802
Azure Linux3azl-otel-collectorno fix listedAZL-111670
Azure Linux3cert-managerno fix listedAZL-111833
Azure Linux3cf-clino fix listedAZL-111839
Azure Linux3cloud-provider-kubevirtno fix listedAZL-111844
Azure Linux3cni-pluginsno fix listedAZL-111854
Azure Linux3containerized-data-importerno fix listedAZL-111878
Azure Linux3cri-ono fix listedAZL-111691
Azure Linux3cri-toolsno fix listedAZL-111893
Azure Linux3daselno fix listedAZL-111902
Azure Linux3docker-buildxno fix listedAZL-111914
Azure Linux3docker-composeno fix listedAZL-111938
16 more for Azure Linux in the JSON.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat Product Security rates this vulnerability as an Important severity because unauthenticated remote attackers can exhaust system CPU and memory resources to trigger a denial of service without requiring privileges. In Red Hat environments, the impact depends on whether Go-based applications or services parse untrusted, external HTML content. Workloads that only process validated internal markup or do not expose HTML parsing endpoints to public networks have a lower overall risk profile.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

--- CME Mitigation Guidance (2026-11-06) ---

Disclaimer: The following mitigation solutions are provided as a courtesy, pending the application of an official patch. This content was generated utilizing AI tools in conjunction with data from https://cmetaxonomy.org. Customers are advised to independently evaluate and test these temporary mitigations within their own infrastructure.

The highest-value action is to enforce strict payload size limits on HTML input before passing to golang.org/x/net/html parsers: upgrade to golang.org/x/net v0.62.0 (or the corresponding fixed Red Hat builds), which accumulate coalesced text in per-node byte slices during parsing and materialize Data strings once at the end of parse, closing crafted HTML input with short text runs separated by ignored end tags. Until patched, this is a concern on Go applications and services parsing untrusted HTML input using golang.org/x/net/html, so Restrict untrusted HTML inputs by enforcing strict upper bounds on request body sizes and segment lengths before passing data to HTML parsing routines. As a compensating measure, Impose per-process CPU time and virtual memory limits via ulimit or prlimit to constrain quadratic allocation loops, Configure systemd WatchdogSec and automatic service restarts to recover from out-of-memory crashes, Constrain CPU and memory usage using cgroups v2 limits on containers and process groups running the parser, Apply request rate limiting and connection throttling to mitigate sustained denial of service attempts, and Monitor cgroup memory pressure metrics via memory.events and PSI to detect rapid memory spikes before host exhaustion. These controls limit blast radius and contain exploitation, but they do not fix the underlying quadratic memory allocation defect — apply the upstream patch to fully remediate.

Highest-impact CME: CME-1311 Input Size and Quantity Bounds Enforcement (high)

ProductPackageStateAdvisory
Ansible Automation Orchestrator 2026ansible-automation-platform/automation-orchestrator-operator-bundleUnder investigation
Ansible Automation Orchestrator 2026ansible-automation-platform/automation-orchestrator-rhel9-operatorUnder investigation
Assisted Installer for Red Hat OpenShift Container Platform 2assisted/agent-preinstall-image-builder-rhel9Under investigation
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-agent-rhel9Under investigation
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-controller-rhel9Under investigation
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-rhel9Under investigation
AWS Load Balancer Operatoralbo/aws-load-balancer-controller-rhel8Under investigation
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-controller-rhel10Under investigation
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-controller-rhel9Under investigation
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-git-cloner-rhel10Under investigation
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-git-cloner-rhel9Under investigation
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-image-bundler-rhel10Under investigation
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-image-bundler-rhel9Under investigation
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-image-processing-rhel10Under investigation
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-image-processing-rhel9Under investigation
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-rhel10-operatorUnder investigation
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-rhel9-operatorUnder investigation
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-shared-resource-rhel10Under investigation
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-shared-resource-rhel9Under investigation
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-shared-resource-webhook-rhel10Under investigation
480 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-78661.

References

Check your stackJSON