Infinite loop Affecting golang.org/x/net/html package, versions <0.45.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GOLANGORGXNETHTML-15237740
  • published6 Feb 2026
  • disclosed5 Feb 2026
  • creditGuido Vranken

Introduced: 5 Feb 2026

NewCVE-2025-58190  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade golang.org/x/net/html to version 0.45.0 or higher.

Overview

golang.org/x/net/html is a package that implements an HTML5-compliant tokenizer and parser.

Affected versions of this package are vulnerable to Infinite loop via the html.Parse function. An attacker can cause resource exhaustion and disrupt service availability by submitting specially crafted HTML input that triggers an infinite parsing loop.

CVSS Base Scores

version 4.0
version 3.1