GHSA-69q2-p9xp-739v: Duplicate Advisory XML Injection Vulnerability
CRITICALGHSA-69q2-p9xp-739v is a CRITICAL (CVSS 9.8) xml injection vulnerability (CWE-91: XML Injection (aka Blind XPath Injection)) affecting Duplicate Advisory libraries in the PyPI ecosystem. The issue involves xml injection in petl. Remediation is available by upgrading affected packages to version 1.6.8.
GHSA-69q2-p9xp-739v at a Glance
Security Impact
CVSS: 9.8
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:H/I:H/A:H).
How to Fix GHSA-69q2-p9xp-739v
To remediate this vulnerability, upgrade all affected Duplicate Advisory 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 petl>=1.6.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show petl
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-69q2-p9xp-739v, inspect your installed packages using pip:
pip show petl
Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.6.8), your application is affected.
Note: The pip show petl command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-91: XML Injection (aka Blind XPath Injection), where the product does not properly neutralize special elements that are used in xml, allowing attackers to modify the syntax, content, or commands of the xml before it is processed by an end system. In Duplicate Advisory, 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
GHSA-69q2-p9xp-739v Affected Duplicate Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
petl
|
PyPI |
< 1.6.8
|
1.6.8
|
References
Frequently Asked Questions
What is GHSA-69q2-p9xp-739v?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-69q2-p9xp-739v?
Is petl affected?
What is the CVSS score of GHSA-69q2-p9xp-739v?
What CWE is associated with GHSA-69q2-p9xp-739v?
How can I check PyPI dependencies for GHSA-69q2-p9xp-739v?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-69q2-p9xp-739v",
"modified" : "2024-10-09T20:47:36Z",
"published" : "2021-04-20T16:32:08Z",
"withdrawn" : "2024-10-09T20:47:08Z",
"aliases" : [ ],
"summary" : "Duplicate Advisory: XML Injection in petl",
"details" : "## Duplicate Advisory\nThis advisoerey has been withdrawn because it is a duplicate of GHSA-f5gc-p5m3-v347. This link is maintained to preserve external references.\n\n## Original Description\npetl before 1.68, in some configurations, allows resolution of entities in an XML document.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "petl"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.6.8"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/petl-developers/petl/security/advisories/GHSA-f5gc-p5m3-v347"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-29128"
}, {
"type" : "WEB",
"url" : "https://github.com/petl-developers/petl/issues/526"
}, {
"type" : "WEB",
"url" : "https://github.com/petl-developers/petl/pull/527"
}, {
"type" : "WEB",
"url" : "https://github.com/petl-developers/petl/commit/07420ef8463cc387aea84e2d6241cf556574e2a5"
}, {
"type" : "WEB",
"url" : "https://github.com/nvn1729/advisories/blob/master/cve-2020-29128.md"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/petl-developers/petl"
}, {
"type" : "WEB",
"url" : "https://github.com/petl-developers/petl/compare/v1.6.7...v1.6.8"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/petl/PYSEC-2020-75.yaml"
}, {
"type" : "WEB",
"url" : "https://owasp.org/www-community/vulnerabilities/XML_External_Entity_(XXE)_Processing"
}, {
"type" : "WEB",
"url" : "https://petl.readthedocs.io/en/stable/changes.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-91" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2021-04-13T19:20:39Z",
"nvd_published_at" : "2020-11-26T05:15:00Z"
}
}