CVE-2020-29128: XML Injection in petl

petl Updated 02 Oct 2025

Summary

20/04/2021
Yes i
Critical
9.8

CVE-2020-29128: Duplicate Advisory: XML Injection in petl. Affects petl versions < 1.6.8. Fixed in 1.6.8. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

petl is a Python package available on PyPI that provides a set of utilities for working with tabular data. It offers functions and classes for reading, manipulating, and writing data in various formats. petl is widely used in data processing and analysis workflows. However, versions before 1.68 are vulnerable to XML injection in certain configurations.

Vulnerability Detail

The XML injection vulnerability in petl allows for the resolution of entities in an XML document. This can lead to various security issues, including the potential for remote code execution, information disclosure, and denial of service attacks. The vulnerability arises from improper handling of user-supplied input, which can be exploited to manipulate the XML structure and execute unintended actions.

How To Fix

Minimum fixed version

1.6.8

This is the first release that contains the fix.

pip install --upgrade "petl==1.6.8"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to update to the fixed version of petl to ensure the security of your application.

Conclusion

The XML injection vulnerability in petl can have severe security implications, including the potential for remote code execution and information disclosure. It is crucial to update to the fixed version (1.6.8 or later) to mitigate these risks. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for petl →

Share this vulnerability

FAQ

XML injection is a type of attack where an attacker manipulates XML input to exploit vulnerabilities in an application. It can lead to various security risks, including remote code execution, information disclosure, and denial of service.

The XML injection vulnerability in petl can allow an attacker to manipulate XML input, potentially leading to remote code execution, information disclosure, or denial of service attacks. It is crucial to update to the fixed version to mitigate these risks.

No, only versions before 1.68 of petl are affected by this XML injection vulnerability. It is recommended to upgrade to version 1.6.8 or later to address the issue.

No, there is no known workaround for this vulnerability. It is necessary to update to the fixed version of petl to ensure the security of your application.

To update your petl installation to the fixed version (1.6.8 or later), you can use the following command:

pip install --upgrade petl

How To Fix

Minimum fixed version

1.6.8

This is the first release that contains the fix.

pip install --upgrade "petl==1.6.8"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback