GHSA-69q2-p9xp-739v: Duplicate Advisory XML Injection Vulnerability

CRITICAL
CVSS 9.8
CWE-91
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-69q2-p9xp-739v
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-91: XML Injection (aka Blind XPath Injection)
Affected Product Duplicate Advisory
Package Ecosystem PyPI
Published Date
Last Updated

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).

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 High (C:H)
Integrity High (I:H)
Availability High (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.

petl fixed: 1.6.8
pip install petl>=1.6.8
Verify Direct and Transitive Dependencies

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

## Duplicate Advisory This advisoerey has been withdrawn because it is a duplicate of GHSA-f5gc-p5m3-v347. This link is maintained to preserve external references. ## Original Description petl before 1.68, in some configurations, allows resolution of entities in an XML document.

GHSA-69q2-p9xp-739v Affected Duplicate Advisory Versions

1 component(s)
Fixed Versions:
1.6.8
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?
GHSA-69q2-p9xp-739v is a security vulnerability in Duplicate Advisory involving XML Injection in petl under CWE-91: XML Injection (aka Blind XPath Injection).
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 1.6.8 across affected packages: petl.
What version fixes GHSA-69q2-p9xp-739v?
Upgrading to 1.6.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is petl affected?
Yes, petl is affected in releases prior to 1.6.8. Upgrade your dependency to 1.6.8 or later.
What is the CVSS score of GHSA-69q2-p9xp-739v?
GHSA-69q2-p9xp-739v has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-69q2-p9xp-739v?
GHSA-69q2-p9xp-739v is classified under CWE-91: XML Injection (aka Blind XPath Injection) (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.).
How can I check PyPI dependencies for GHSA-69q2-p9xp-739v?
Run the dependency tree command: 'pip show petl'. 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-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"
  }
}