Advisory

PYSEC-2026-2057

Also known as: CVE-2025-11059, GHSA-9mv7-3c64-mmqw

Summary

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.

Severity

Not rated by the source.

Dates

Published
2026-07-07 16:03 UTC
Modified
2026-07-07 17:48 UTC

Affected packages and fixes

xml2rfc

PyPI · All systems

Affected

  • introduced 0, fixed 3.30.2 (ecosystem)

Fixed versions

3.30.2

Fix

  • Fixed version 3.30.2
    pip install --upgrade xml2rfc==3.30.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences