CVE-2020-25614: Github.com/antchfx/xmlquery Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-93m7-c69f-5cfj
CVSS 7.5
CWE-20 CWE-119
Published
Advisory Summary

CVE-2020-25614 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-20: Improper Input Validation) affecting Github.com/antchfx/xmlquery libraries in the Go ecosystem. The issue involves xmlquery lacks check for whether loadurl response is in xml format, causing denial of service. Remediation is available by upgrading affected packages to version 1.3.1.

CVE-2020-25614 at a Glance

CVE Identifier CVE-2020-25614
GHSA Identifier GHSA-93m7-c69f-5cfj
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-20: Improper Input Validation
Affected Product Github.com/antchfx/xmlquery
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2020-25614

To remediate this vulnerability, upgrade all affected Github.com/antchfx/xmlquery dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/antchfx/xmlquery fixed: 1.3.1
Upgrade github.com/antchfx/xmlquery to 1.3.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/antchfx/xmlquery

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-25614, inspect your project dependencies for Github.com/antchfx/xmlquery:

inspect dependencies for github.com/antchfx/xmlquery

Analyze the terminal output to locate any version of Github.com/antchfx/xmlquery in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Github.com/antchfx/xmlquery, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2020-25614 Affected Github.com/antchfx/xmlquery Versions

1 component(s)
Fixed Versions:
1.3.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/antchfx/xmlquery
Go
< 1.3.1
1.3.1

References

Frequently Asked Questions

What is CVE-2020-25614?
CVE-2020-25614 is a security vulnerability in Github.com/antchfx/xmlquery involving xmlquery lacks check for whether LoadURL response is in XML format, causing denial of service under CWE-20: Improper Input Validation.
Which Github.com/antchfx/xmlquery versions are affected?
Affected versions include releases prior to 1.3.1 across affected packages: github.com/antchfx/xmlquery.
What version fixes CVE-2020-25614?
Upgrading to 1.3.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/antchfx/xmlquery affected?
Yes, github.com/antchfx/xmlquery is affected in releases prior to 1.3.1. Upgrade your dependency to 1.3.1 or later.
What is the CVSS score of CVE-2020-25614?
CVE-2020-25614 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2020-25614?
CVE-2020-25614 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Go dependencies for CVE-2020-25614?
Run the dependency tree command: 'inspect dependencies for github.com/antchfx/xmlquery'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-93m7-c69f-5cfj",
  "modified" : "2025-01-22T16:56:37Z",
  "published" : "2022-10-07T07:20:03Z",
  "aliases" : [ "CVE-2020-25614" ],
  "summary" : "xmlquery lacks check for whether LoadURL response is in XML format, causing denial of service",
  "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/antchfx/xmlquery"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-25614"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/antchfx/xmlquery/issues/39"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/antchfx/xmlquery/commit/5648b2f39e8d5d3fc903c45a4f1274829df71821"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/antchfx/xmlquery"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/antchfx/xmlquery/compare/v1.3.0...v1.3.1"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2020-0048"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-119", "CWE-20" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-10-07T07:20:03Z",
    "nvd_published_at" : "2020-09-16T15:15:00Z"
  }
}