VDB
Sign up
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.1

Details

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.1
Fixgo get github.com/antchfx/xmlquery@v1.3.1

References