PyPA Advisory Database
PYSEC-2026-2057
xml2rfc is vulnerable to arbitrary file reads through prepped files
Details
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 packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | xml2rfc | All versions before 3.30.2 (fixed in 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