CVE-2025-22872

Incorrect Neutralization of Input During Web Page Generation in x/net in golang.org/x/net

Published Apr 16, 2025 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
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).

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-11453 golang.org/x/net vulnerable to Cross-site Scripting
Github GHSA Github GHSA GHSA-vvgc-356p-c3xw golang.org/x/net vulnerable to Cross-site Scripting
Ubuntu USN Ubuntu USN USN-8089-1 Go Networking vulnerabilities
Ubuntu USN Ubuntu USN USN-8089-2 Go Networking vulnerabilities
Ubuntu USN Ubuntu USN USN-8089-3 ADSys, Juju Core, LXD vulnerabilities
Ubuntu USN Ubuntu USN USN-8900-1 Go Networking vulnerabilities
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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).
Title Incorrect Neutralization of Input During Web Page Generation in x/net in golang.org/x/net
References

Subscriptions

No data.

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
May 16, 2025, 11:03 PM
Reserved
Jan 8, 2025, 7:11 PM
Status
Deferred
Published
Apr 16, 2025, 6:16 PM
Modified
Jun 17, 2026, 8:50 AM
Severity
Moderate
Public date
Apr 16, 2025, 5:13 PM