GO-2022-0197

Source
https://pkg.go.dev/vuln/GO-2022-0197
Import Source
https://vuln.go.dev/ID/GO-2022-0197.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2022-0197
Aliases
Published
2022-07-01T20:15:19Z
Modified
2024-05-20T16:03:47Z
Summary
Panic when parsing certain inputs in golang.org/x/net/html
Details

The Parse function can panic on some invalid inputs.

For example, the Parse function panics on the input "<svg><template><desc><t><svg></template>".

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2022-0197"
}
References
Credits
    • @tr3ee

Affected packages

Go / golang.org/x/net

Package

Name
golang.org/x/net
View open source insights on deps.dev
Purl
pkg:golang/golang.org/x/net

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.0.0-20190125002852-4b62a64f59f7

Ecosystem specific

{
    "imports": [
        {
            "path": "golang.org/x/net/html",
            "symbols": [
                "Parse",
                "ParseFragment",
                "nodeStack.contains"
            ]
        }
    ]
}