GO-2022-0192

Source
https://pkg.go.dev/vuln/GO-2022-0192
Import Source
https://vuln.go.dev/ID/GO-2022-0192.json
JSON Data
https://api.test.osv.dev/v1/vulns/GO-2022-0192
Aliases
Published
2022-07-01T20:11:34Z
Modified
2024-05-20T16:03:47Z
Summary
Incorrect parsing of nested templates 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 "<math><template><mo><template>".

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2022-0192"
}
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-20180925071336-cf3bd585ca2a

Ecosystem specific

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