We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2025-22872

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



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

Reserved 2025-01-08 | Published 2025-04-16 | Updated 2025-05-16 | Assigner Go

Problem types

CWE-79

Product status

Default status
unaffected

Any version before 0.38.0
affected

Credits

Sean Ng (https://ensy.zip)

References

go.dev/cl/662715

go.dev/issue/73070

groups.google.com/g/golang-announce/c/ezSKR9vqbqA

pkg.go.dev/vuln/GO-2025-3595

cve.org (CVE-2025-22872)

nvd.nist.gov (CVE-2025-22872)

Download JSON

Share this page
https://cve.threatint.eu/CVE/CVE-2025-22872

Support options

Helpdesk Chat, Email, Knowledgebase