CVE-2020-26710: Easy parse Easy-parse XML External Entity Injection Vulnerability
HIGHCVE-2020-26710 is a HIGH (CVSS 7.5) easy-parse xml external entity injection vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Easy parse libraries in the PyPI ecosystem. The issue involves easy-parse xml external entity injection vulnerability. Remediation is available in the latest vendor maintenance releases.
CVE-2020-26710 at a Glance
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).
How to Fix CVE-2020-26710
To remediate this vulnerability, upgrade all affected Easy parse dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install easy-parse>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show easy-parse
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2020-26710, inspect your installed packages using pip:
pip show easy-parse
Analyze the terminal output to locate any version of Easy parse in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The pip show easy-parse command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-611: Improper Restriction of XML External Entity Reference, where the product processes an xml document that can contain xml entities with uris that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output. In Easy parse, 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
CVE-2020-26710 Affected Easy parse Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
easy-parse
|
PyPI |
≤ 0.1.1
|
|
References
Frequently Asked Questions
What is CVE-2020-26710?
Which Easy parse versions are affected?
What version fixes CVE-2020-26710?
Is easy-parse affected?
What is the CVSS score of CVE-2020-26710?
What CWE is associated with CVE-2020-26710?
How can I check PyPI dependencies for CVE-2020-26710?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vv6q-6hwp-vrgp",
"modified" : "2023-07-07T16:30:07Z",
"published" : "2023-06-29T21:30:29Z",
"aliases" : [ "CVE-2020-26710" ],
"summary" : "easy-parse XML External Entity Injection vulnerability",
"details" : "easy-parse v0.1.1 was discovered to contain a XML External Entity Injection (XXE) vulnerability which allows attackers to execute arbitrary code via a crafted XML file.",
"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" : "PyPI",
"name" : "easy-parse"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.1.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-26710"
}, {
"type" : "WEB",
"url" : "https://github.com/uncmath25/easy-parse/issues/3"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/easy-parse/PYSEC-2023-97.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/uncmath25/easy-parse"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-611" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-06-30T20:36:45Z",
"nvd_published_at" : "2023-06-29T21:15:09Z"
}
}