GO-2020-0048

Source
https://pkg.go.dev/vuln/GO-2020-0048
Import Source
https://vuln.go.dev/ID/GO-2020-0048.json
JSON Data
https://api.test.osv.dev/v1/vulns/GO-2020-0048
Aliases
Published
2021-04-14T20:04:52Z
Modified
2024-05-20T16:03:47Z
Summary
Denial of service in github.com/antchfx/xmlquery
Details

LoadURL does not check the Content-Type of loaded resources, which can cause a panic due to nil pointer deference if the loaded resource is not XML. If user supplied URLs are loaded, this may be used as a denial of service vector.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2020-0048"
}
References
Credits
    • @dwisiswant0

Affected packages

Go / github.com/antchfx/xmlquery

Package

Name
github.com/antchfx/xmlquery
View open source insights on deps.dev
Purl
pkg:golang/github.com/antchfx/xmlquery

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.3.1

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/antchfx/xmlquery",
            "symbols": [
                "LoadURL"
            ]
        }
    ]
}