Inefficient Algorithmic Complexity 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-15237516
  • published6 Feb 2026
  • disclosed5 Feb 2026
  • creditGuido Vranken, Jakub Ciolek

Introduced: 5 Feb 2026

NewCVE-2025-47911  (opens in a new tab)
CWE-407  (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 Inefficient Algorithmic Complexity via the html.Parse function due to quadratic parsing complexity when processing certain inputs, which can lead to denial of service (DoS) if an attacker provides specially crafted HTML content.

CVSS Base Scores

version 4.0
version 3.1