Vulnerabilities in pkg:pypi/xml2rfc
PACKAGECVE-2025-11059 is a HIGH xml2rfc is vulnerable to arbitrary vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Xml2rfc libraries in the PyPI ecosystem. The issue involves xml2rfc is vulnerable to arbitrary file reads through prepped files. Remediation is available by upgrading affected packages to version 3.30.2.
pkg:pypi/xml2rfc
Vulnerability advisories affecting package pkg:pypi/xml2rfc. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-9mv7-3c64-mmqw | CVE-2025-11059 | HIGH | xml2rfc is vulnerable to arbitrary file reads through prepped files |
| GHSA-cfmv-h8fx-85m7 | CVE-2025-11058 | HIGH | xml2rfc has an arbitrary file read vulnerability |
| GHSA-432c-wxpg-m4q3 | - | MODERATE | xml2rfc has file inclusion irregularities |
| GHSA-cf4q-4cqr-7g7w | - | MODERATE | SVG with embedded scripts can lead to cross-site scripting attacks in xml2rfc |
CVE-2025-11059 at a Glance
How to Fix CVE-2025-11059
To remediate this vulnerability, upgrade all affected Xml2rfc 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 xml2rfc>=3.30.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show xml2rfc
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-11059, inspect your installed packages using pip:
pip show xml2rfc
Analyze the terminal output to locate any version of Xml2rfc in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.30.2), your application is affected.
Note: The pip show xml2rfc command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Xml2rfc, 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
CVE-2025-11059 Affected Xml2rfc Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
xml2rfc
|
PyPI |
< 3.30.2
|
3.30.2
|
References
Frequently Asked Questions
What is CVE-2025-11059?
Which Xml2rfc versions are affected?
What version fixes CVE-2025-11059?
Is xml2rfc affected?
What CWE is associated with CVE-2025-11059?
How can I check PyPI dependencies for CVE-2025-11059?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9mv7-3c64-mmqw",
"modified" : "2025-09-29T14:03:39Z",
"published" : "2025-09-10T20:44:58Z",
"aliases" : [ "CVE-2025-11059" ],
"summary" : "xml2rfc is vulnerable to arbitrary file reads through prepped files",
"details" : "### Impact\n\nWhen generating PDF files, this vulnerability allows an attacker to read arbitrary files from the filesystem by injecting malicious link element into the prepped RFCXML.\n\n### Workarounds\n\nTest untrusted input with `link` elements with `rel=\"attachment\"` before processing.\n\n### References\nThis is related to [GHSA-cfmv-h8fx-85m7](https://github.com/ietf-tools/xml2rfc/security/advisories/GHSA-cfmv-h8fx-85m7).",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "xml2rfc"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.30.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ietf-tools/xml2rfc/security/advisories/GHSA-9mv7-3c64-mmqw"
}, {
"type" : "WEB",
"url" : "https://github.com/ietf-tools/xml2rfc/commit/73fb1c91fc62ac540bb6bd24f982f2becf84c1b0"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ietf-tools/xml2rfc"
}, {
"type" : "WEB",
"url" : "https://github.com/ietf-tools/xml2rfc/releases/tag/v3.30.2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-09-10T20:44:58Z",
"nvd_published_at" : null
}
}