HIGH7.5
GHSA-93m7-c69f-5cfj
xmlquery lacks check for whether LoadURL response is in XML format, causing denial of service
Quick fix
GHSA-93m7-c69f-5cfj — github.com/antchfx/xmlquery: upgrade to the fixed version with the command below.
go get github.com/antchfx/xmlquery@v1.3.1Details
xmlquery before 1.3.1 lacks a check for whether a LoadURL response is in the XML format, which allows attackers to cause a denial of service (SIGSEGV) at xmlquery.(*Node).InnerText or possibly have unspecified other impact.
Are you affected?
Enter the version of the package you're using.
Affected packages
Go/github.com/antchfx/xmlquery
Introduced in:
0Fixed in: 1.3.1Fix
go get github.com/antchfx/xmlquery@v1.3.1References
- https://nvd.nist.gov/vuln/detail/CVE-2020-25614[ADVISORY]
- https://github.com/antchfx/xmlquery/issues/39[WEB]
- https://github.com/antchfx/xmlquery/commit/5648b2f39e8d5d3fc903c45a4f1274829df71821[WEB]
- https://github.com/antchfx/xmlquery[PACKAGE]
- https://github.com/antchfx/xmlquery/compare/v1.3.0...v1.3.1[WEB]
- https://pkg.go.dev/vuln/GO-2020-0048[WEB]