Skip to main content
CVE-2025-58190VulnerabilityPublished Updated

CVE-2025-58190: golang.org/x/net/html · Loop with Unreachable Exit Condition

Affects golang.org/x/net/htmlSource CVE Database V5

0

Not known to be exploited · CVSS 5.3 Medium : upgrade to 0.45.0 when convenient.

Data as of 26 Oct 2026, 07:57 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
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:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 5 Feb 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 2026-10-26.

What to do

Upgrade golang.org/x/net/html to 0.45.0.

Affected software

ProductAffectedFixed in
golang.org/x/netgolang.org/x/net/htmlAffected
  • <0.45.0
Fixed in
  • 0.45.0
Gogolang.org/x/net/htmlpkg:golang/golang.org/x/net/htmlOther threatsAffected
  • =0
Fixed in–
Gogolang.org/x/net/htmlpkg:golang/golang.org/x/net/htmlOther threatsAffected
  • <0.45.0
Fixed in
  • 0.45.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

1. 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. 2. Implement input validation to filter or sanitize incoming HTML content before parsing, reducing the risk of triggering the infinite loop. 3. Introduce parsing timeouts or resource limits in applications using html.Parse to prevent indefinite CPU consumption during parsing. 4. Employ runtime monitoring and alerting for abnormal CPU usage patterns in services that parse HTML content, enabling rapid detection of potential exploitation attempts. 5. Where feasible, isolate HTML parsing components in separate processes or containers to limit the blast radius of a DoS condition. 6. Conduct code reviews and security testing focused on input handling and parsing logic in Go applications to identify similar vulnerabilities. 7. Educate developers and DevOps teams about this vulnerability and encourage secure coding practices around third-party library usage. 8. 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.

References

Community reviews

Loading reviews…