CVEfocus › CVE database › CVE-2025-22872

CVE-2025-22872Incorrect Neutralization of Input During Web Page Generation in x/net in golang.org/x/net

CVSS 6.5 MediumEPSS 0.6% (higher than 43% of CVEs)Published 2025-04-16Updated 2025-05-16Assigner: Go

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).

What to do

Fixed builds are available from Debian, Go, Ubuntu: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
49Fix pending
12Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04adsysNot affected
vulnerable_code_not_present
Ubuntu 26.04golang-golang-x-netNot affected
vulnerable_code_not_present
Ubuntu 26.04google-guest-agentNot affected
vulnerable_code_not_present
Ubuntu 25.10adsysNot affected
vulnerable_code_not_present
Ubuntu 25.10containerdNot affected
vulnerable_code_not_present
Ubuntu 25.10golang-golang-x-netNot affected
vulnerable_code_not_present
Ubuntu 25.10google-guest-agentNot affected
vulnerable_code_not_present
Ubuntu 24.04adsysNot affected
vulnerable_code_not_present
Ubuntu 24.04golang-golang-x-netFix pending1:0.21.0+dfsg-1ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2025-22872
Ubuntu 24.04google-guest-agentNot affected
vulnerable_code_not_present
Ubuntu 22.04adsysNot affected
vulnerable_code_not_present
Ubuntu 22.04containerdNot affected
vulnerable_code_not_present
Ubuntu 22.04golang-golang-x-netFixed1:0.0+git20211209.491a49a+dfsg-1ubuntu0.1UBUNTU-CVE-2025-22872
Ubuntu 22.04google-guest-agentNot affected
vulnerable_code_not_present
Ubuntu 20.04golang-golang-x-net-devFix pending1:0.0+git20190811.74dc4d7+dfsg-1ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2025-22872
Ubuntu 20.04lxdFix pending
Ubuntu 18.04golang-golang-x-net-devFix pending1:0.0+git20170629.c81e7f2+dfsg-2ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2025-22872
Ubuntu 18.04lxdFix pending3.0.3-0ubuntu1~18.04.2+esm2 (Ubuntu Pro)UBUNTU-CVE-2025-22872
Ubuntu 16.04containerdFix pending
Ubuntu 16.04golang-golang-x-net-devFix pending1:0.0+git20160110.4fd4a9f-1ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2025-22872
Ubuntu 16.04google-guest-agentFix pending
Ubuntu 16.04juju-coreFix pending2.3.7-0ubuntu0.16.04.1+esm2 (Ubuntu Pro)UBUNTU-CVE-2025-22872
Ubuntu 16.04lxdFix pending2.0.11-0ubuntu1~16.04.4+esm2 (Ubuntu Pro)UBUNTU-CVE-2025-22872
Debian 14golang-golang-x-netFixed1:0.27.0-2DEBIAN-CVE-2025-22872
Debian 13golang-golang-x-netFixed1:0.27.0-2DEBIAN-CVE-2025-22872
Debian 12golang-golang-x-netFix pendingDEBIAN-CVE-2025-22872
Red Hat Enterprise Linux 10grafanaFix pending
Fix deferred
Red Hat Enterprise Linux 10grafana-selinuxFix pending
Fix deferred
Red Hat Enterprise Linux 10gvisor-tap-vsockFix pending
Fix deferred
Red Hat Enterprise Linux 10gvisor-tap-vsock-gvforwarderFix pending
Fix deferred
Red Hat Enterprise Linux 10osbuild-composerFix pending
Fix deferred
Red Hat Enterprise Linux 10osbuild-composer-coreFix pending
Fix deferred
Red Hat Enterprise Linux 10osbuild-composer-workerFix pending
Fix deferred
Red Hat Enterprise Linux 10podmanFix pending
Fix deferred
Red Hat Enterprise Linux 10podman-dockerFix pending
Fix deferred
Red Hat Enterprise Linux 10podman-remoteFix pending
Fix deferred
Red Hat Enterprise Linux 10podman-testsFix pending
Fix deferred
Red Hat Enterprise Linux 9grafanaFix pending
Fix deferred
Red Hat Enterprise Linux 9grafana-selinuxFix pending
Fix deferred
Red Hat Enterprise Linux 9gvisor-tap-vsockFix pending
Fix deferred
Red Hat Enterprise Linux 9gvisor-tap-vsock-gvforwarderFix pending
Fix deferred
Red Hat Enterprise Linux 9osbuild-composerFix pending
Fix deferred
Red Hat Enterprise Linux 9osbuild-composer-coreFix pending
Fix deferred
Red Hat Enterprise Linux 9osbuild-composer-dnf-jsonFix pending
Fix deferred
Red Hat Enterprise Linux 9osbuild-composer-workerFix pending
Fix deferred
Red Hat Enterprise Linux 9podmanFix pending
Fix deferred
Red Hat Enterprise Linux 9podman-catatonitFix pending
Fix deferred
Red Hat Enterprise Linux 9podman-dockerFix pending
Fix deferred
Red Hat Enterprise Linux 9podman-gvproxyFix pending
Fix deferred
Red Hat Enterprise Linux 9podman-pluginsFix pending
Fix deferred
Red Hat Enterprise Linux 9podman-remoteFix pending
Fix deferred
Red Hat Enterprise Linux 9podman-testsFix pending
Fix deferred
Red Hat Enterprise Linux 8osbuild-composerFix pending
Fix deferred
Red Hat Enterprise Linux 8osbuild-composer-coreFix pending
Fix deferred
Red Hat Enterprise Linux 8osbuild-composer-dnf-jsonFix pending
Fix deferred
Red Hat Enterprise Linux 8osbuild-composer-workerFix pending
Fix deferred
Red Hat Enterprise Linux 8podmanFix pending
Fix deferred
Red Hat Enterprise Linux 8podman-catatonitFix pending
Fix deferred
Red Hat Enterprise Linux 8podman-dockerFix pending
Fix deferred
Red Hat Enterprise Linux 8podman-gvproxyFix pending
Fix deferred
Red Hat Enterprise Linux 8podman-manpagesFix pending
Fix deferred
Red Hat Enterprise Linux 8podman-pluginsFix pending
Fix deferred
Red Hat Enterprise Linux 8podman-remoteFix pending
Fix deferred
Red Hat Enterprise Linux 8podman-testsFix pending
Fix deferred
Go librarygolang.org/x/netFixed0.38.0GHSA-vvgc-356p-c3xw

What the vendor says

As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.