CVE-2025-58190: golang.org/x/net/html · Loop with Unreachable Exit Condition
Affects golang.org/x/net/htmlSource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium : upgrade to 0.45.0 when convenient.
Data as of 26 Oct 2026, 10:12 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 45% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.45.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 5 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade golang.org/x/net/html to 0.45.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| golang.org/x/netgolang.org/x/net/html | Affected
| Fixed in
|
Gogolang.org/x/net/htmlpkg:golang/golang.org/x/net/htmlOther threats | Affected
| Fixed in– |
Gogolang.org/x/net/htmlpkg:golang/golang.org/x/net/htmlOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Monitor official golang.org/x/net/html package repositories and security advisories for the release of a patch addressing CVE-2025-58190 and apply updates promptly once available.
- Implement input validation to filter or sanitize incoming HTML content before parsing, reducing the risk of triggering the infinite loop.
- Introduce parsing timeouts or resource limits in applications using html.Parse to prevent indefinite CPU consumption during parsing.
- Employ runtime monitoring and alerting for abnormal CPU usage patterns in services that parse HTML content, enabling rapid detection of potential exploitation attempts.
- Where feasible, isolate HTML parsing components in separate processes or containers to limit the blast radius of a DoS condition.
- Conduct code reviews and security testing focused on input handling and parsing logic in Go applications to identify similar vulnerabilities.
- Educate developers and DevOps teams about this vulnerability and encourage secure coding practices around third-party library usage.
- Consider alternative HTML parsing libraries or approaches if immediate patching is not possible, ensuring they do not exhibit similar infinite loop behaviors.
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.