CVE-2025-22872 Affecting golang-golang-x-net-dev package, versions <1:0.0+git20190811.74dc4d7+dfsg-1ubuntu0.1~esm2


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.12% (31st 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-UBUNTU2004-GOLANGGOLANGXNETDEV-10062658
  • published29 Mar 2026
  • disclosed16 Apr 2025

Introduced: 16 Apr 2025

CVE-2025-22872  (opens in a new tab)

How to fix?

Upgrade Ubuntu:20.04 golang-golang-x-net-dev to version 1:0.0+git20190811.74dc4d7+dfsg-1ubuntu0.1~esm2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream golang-golang-x-net-dev package and not the golang-golang-x-net-dev package as distributed by Ubuntu. See How to fix? for Ubuntu:20.04 relevant fixed versions and status.

The tokenizer incorrectly interprets tags with unquoted attribute values that end with a solidus character (/) as self-closing. When directly using Tokenizer, this can result in such tags incorrectly being marked as self-closing, and when using the Parse functions, this can result in content following such tags as being placed in the wrong scope during DOM construction, but only when tags are in foreign content (e.g. <math>, <svg>, etc contexts).

CVSS Base Scores

version 3.1