High

XXE in petl

  • Disclosed: 26.11.2020
  • Updated: 11.10.2026 15:17

Impact

Information Disclosure

Summary

petl is a Python library that provides functions for extraction, transformation, and loading (ETL) of data.

petl before 1.68, in some configurations, allows resolution of entities in XML input.

An attacker who is able to submit XML input to an application using petl can disclose arbitrary files on the file system in the context of the user under which the application is running.

Affected Applications

Applications that:

  • accept attacker-supplied XML input that is processed using petl < 1.68
  • return the response generated by petl back to the attacker
  • configure lxml as the underlying XML processing library used by petl
  • have read privileges in filesystem files with sensitive information

Mitigation

Update to petl >= 1.68

Workarounds

  • Assure there is no user/external access to the application using petl
  • Assure your application is not using the function fromxml()

References

For more information

If you have any questions or comments about this advisory:

  • Add a comment in the Github issue

Thaks to Naveen Sunkavally.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) petl < 1.6.8 1.6.8

References

CVSS score 9.8/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-91, CWE-611
Platform
Python (PyPI)
Package
petl
Disclosed
26.11.2020
Updated
11.10.2026 15:17

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2020-75 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-69q2-p9xp-739v - CC BY 4.0

OSV / GitHub Advisory Database - GHSA-f5gc-p5m3-v347 - CC BY 4.0

Vulnerability history: petl

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

This is the only known vulnerability of this package.

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.