CVE-2025-11059
xml2rfc is vulnerable to arbitrary file reads through prepped files
Description
### 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](https://github.com/ietf-tools/xml2rfc/security/advisories/GHSA-cfmv-h8fx-85m7).
How to fix CVE-2025-11059
To remediate CVE-2025-11059, upgrade the affected package to a fixed version below.
- PyPI/xml2rfc—upgrade to 3.30.2 or later
Is CVE-2025-11059 being exploited?
No exploitation signal available. Neither CISA KEV nor a current EPSS score has been published for CVE-2025-11059.
Affected packages (1)
- from 0, < 3.30.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |