CVE-2025-58190 Infinite parsing loop in golang.org/x/net
An attacker can cause a denial of service by providing specially crafted HTML content that triggers an infinite parsing loop in the Go HTML parser.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-58190?
CVE-2025-58190 is a medium-severity denial of service vulnerability in golang.org/x/net/html, published on 5 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The html.Parse function in golang.org/x/net/html has an infinite parsing loop when processing certain inputs, which can lead to denial of service (DoS) if an attacker provides specially crafted HTML content.
Weakness: CWE-835
Which versions are affected by CVE-2025-58190?
1 open source package ship an affected version, including golang.org/x/net. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
golang.org/x/net Go | All versions | 0.45.0 |
Products include Go Html.
How do I fix CVE-2025-58190?
Upgrade golang.org/x/net to 0.45.0 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2025-58190 being exploited?
There is no known exploitation of CVE-2025-58190 in the wild and no public exploit code.
Other vulnerabilities in golang.org/x/net/html
Sources
Also known as AZL-76788, AZL-76790, AZL-76799, AZL-76805, AZL-76811, AZL-76827 and 553 more.