Security mailing lists by PureSourceCode

CVE-2025-22872

MEDIUM 6.5CVSS 3.1

golang.org/x/net vulnerable to Cross-site Scripting

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

Published
16 Apr 2025
Last modified
10 Sep 2026
Assigned by
security@golang.org
NVD status
Deferred
Weakness
CWE-79
Also known as
GHSA-vvgc-356p-c3xwGO-2025-3595
Sources
NVDJSONOSV GHSA-vvgc-356p-c3xwJSONOSV GO-2025-3595JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Go golang.org/x/net < 0.38.0 0.38.0

References

History

  • 25 Nov 2026 20:57 UTC · NVD: first stored (published 16 Apr 2025)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Apr 2025)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Apr 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.