CVE-2025-66371: Peppol py Peppol-py Is Vulnerable To XXE Vulnerability

MODERATE
Advisory Identifier: GHSA-24hm-wm2h-h8w7
CVSS 5.0
CWE-611
Published
Advisory Summary

CVE-2025-66371 is a MODERATE (CVSS 5.0) peppol-py is vulnerable to xxe vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Peppol py libraries in the PyPI ecosystem. The issue involves peppol-py is vulnerable to xxe attacks due to saxon configuration. Remediation is available by upgrading affected packages to version 1.1.1.

CVE-2025-66371 at a Glance

CVE Identifier CVE-2025-66371
GHSA Identifier GHSA-24hm-wm2h-h8w7
Severity MODERATE
CVSS v3.1 Base Score 5.0
CWE Classification CWE-611: Improper Restriction of XML External Entity Reference
Affected Product Peppol py
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2025-66371

To remediate this vulnerability, upgrade all affected Peppol py dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

peppol_py fixed: 1.1.1
pip install peppol_py>=1.1.1
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 peppol_py

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2025-66371, inspect your installed packages using pip:

pip show peppol_py

Analyze the terminal output to locate any version of Peppol py in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.1), your application is affected.

Note: The pip show peppol_py 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 Peppol py, 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

Peppol-py before 1.1.1 allows XXE attacks because of the Saxon configuration. When validating XML-based invoices, the XML parser could read files from the filesystem and expose their content to a remote host.

CVE-2025-66371 Affected Peppol py Versions

1 component(s)
Fixed Versions:
1.1.1
Product / Package Ecosystem Affected Versions Fixed Version
peppol_py
PyPI
< 1.1.1
1.1.1

References

Frequently Asked Questions

What is CVE-2025-66371?
CVE-2025-66371 is a security vulnerability in Peppol py involving Peppol-py is vulnerable to XXE attacks due to Saxon configuration under CWE-611: Improper Restriction of XML External Entity Reference.
Which Peppol py versions are affected?
Affected versions include releases prior to 1.1.1 across affected packages: peppol_py.
What version fixes CVE-2025-66371?
Upgrading to 1.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is peppol_py affected?
Yes, peppol_py is affected in releases prior to 1.1.1. Upgrade your dependency to 1.1.1 or later.
What is the CVSS score of CVE-2025-66371?
CVE-2025-66371 has a CVSS v3.1 base score of 5.0 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N.
What CWE is associated with CVE-2025-66371?
CVE-2025-66371 is classified under CWE-611: Improper Restriction of XML External Entity Reference (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.).
How can I check PyPI dependencies for CVE-2025-66371?
Run the dependency tree command: 'pip show peppol_py'. 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-24hm-wm2h-h8w7",
  "modified" : "2026-01-29T03:30:58Z",
  "published" : "2025-11-28T06:32:06Z",
  "aliases" : [ "CVE-2025-66371" ],
  "summary" : "Peppol-py is vulnerable to XXE attacks due to Saxon configuration",
  "details" : "Peppol-py before 1.1.1 allows XXE attacks because of the Saxon configuration. When validating XML-based invoices, the XML parser could read files from the filesystem and expose their content to a remote host.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "peppol_py"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-66371"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/iterasdev/peppol-py/pull/16"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/iterasdev/peppol-py/commit/349a4bff8adb6205ea411bac8d7a06da0477abd7"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/iterasdev/peppol-py"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/iterasdev/peppol-py/releases/tag/1.1.1"
  }, {
    "type" : "WEB",
    "url" : "https://invoice.secvuln.info"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-611" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-12-01T23:57:53Z",
    "nvd_published_at" : "2025-11-28T04:16:01Z"
  }
}