xml2rfc is vulnerable to arbitrary file reads through prepped files
Impact
When generating PDF files, this vulnerability allows an attacker to read arbitrary files from the filesystem by injecting malicious link element into the prepped RFCXML.
Workarounds
Test untrusted input with link elements with rel="attachment" before processing.
References
This is related to GHSA-cfmv-h8fx-85m7.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | xml2rfc | < 3.30.2 | 3.30.2 |
References
- https://github.com/ietf-tools/xml2rfc/security/advisories/GHSA-9mv7-3c64-mmqw
- https://github.com/ietf-tools/xml2rfc/commit/73fb1c91fc62ac540bb6bd24f982f2becf84c1b0
- https://github.com/ietf-tools/xml2rfc
- https://github.com/ietf-tools/xml2rfc/releases/tag/v3.30.2
- https://pypi.org/project/xml2rfc
- https://github.com/advisories/GHSA-9mv7-3c64-mmqw
- https://nvd.nist.gov/vuln/detail/CVE-2025-11059
- CVSS vector
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- Weakness (CWE)
CWE-22- Platform
- Python (PyPI)
- Package
xml2rfc- Disclosed
- 10.09.2025
- Updated
- 11.10.2026 13:18
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-2057 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-9mv7-3c64-mmqw - CC BY 4.0
Vulnerability history: xml2rfc
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 4
- First → latest
- 04.2022 09.2025
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 2
- Medium 2
Disclosures per year
- 2022: 1
- 2023: 0
- 2024: 0
- 2025: 3
- 2026: 0
-
xml2rfc is vulnerable to arbitrary file reads through prepped files this entry
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.