Inefficient Algorithmic Complexity Affecting github.com/golang/net/html package, versions <0.55.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (14th 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-GITHUBCOMGOLANGNETHTML-16873778
  • published24 May 2026
  • disclosed22 May 2026
  • creditIPC Labs

Introduced: 22 May 2026

NewCVE-2026-25680  (opens in a new tab)
CWE-407  (opens in a new tab)

How to fix?

Upgrade github.com/golang/net/html to version 0.55.0 or higher.

Overview

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

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity in parse.go, when checking attributes iteratively. An attacker can cause excessive CPU consumption by providing malicious HTML input.

CVSS Base Scores

version 4.0
version 3.1