CVE-2026-25680: Go net/html denial of service in HTML tree construction

CVE-2026-25680 · Severity: medium · CVSS 6.5 · Published 2026-05-22

A vulnerability in the Go programming language's standard networking library could allow an attacker to crash or slow down applications that process web content. By providing a specially crafted HTML file, an attacker can force the system to consume excessive processor resources, leading to a denial of service. This affects any Go-based service or tool that uses the affected library to parse HTML from external sources.

Technologies: golang.org/x/net (Go), net/html (Go). Vendors: Go.

Quick answers

Is CVE-2026-25680 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-25680 being exploited in the wild.
How severe is CVE-2026-25680?
Medium severity, with a CVSS score of 6.5, published 22 May 2026.
Which products and versions are affected?
golang.org/x/net (Go) < 0.55.0, SEMVER:introduced=0,fixed=0.55.0; net/html (Go) before v0.55.0.
Is there a fix for CVE-2026-25680?
Yes. golang.org/x/net (Go): upgrade to 0.55.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-25680 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-25680?
Check whether you run golang.org/x/net (Go) or net/html (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • golang.org/x/net (Go): upgrade to 0.55.0 or later
    go get golang.org/x/net@v0.55.0

Technical details

A vulnerability in the Go Net (`golang.org/x/net`) HTML parser allows for uncontrolled resource consumption (CWE-400). When parsing arbitrary, malicious HTML input, the parser can be forced to consume excessive CPU time. The attack vector is network-based and requires no special privileges, though it is categorized as requiring user interaction (e.g., a user or service processing a malicious file). This can result in a sustained denial of service for the affected application. The issue is resolved in version 0.55.0 of the library.

Affected products

  • Go x/net < 0.55.0

Identifiers

  • CVE-2026-25680
  • GHSA-5cv4-jp36-h3mw
  • GO-2026-5028

Timeline

  • 2026-05-22: disclosed: NVD publication date
  • 2026-05-26: advisory: GitHub Advisory published
  • 2026-07-01: patched: GitHub Advisory reviewed and updated with patch information

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.