CVE-2025-11058: xml2rfc Arbitrary File Read Vulnerability

xml2rfc Updated 07 Jul 2026

Summary

07/07/2026
Yes i
High
8.7

CVE-2025-11058: xml2rfc has an arbitrary file read vulnerability. Affects xml2rfc versions < 3.30.1. Fixed in 3.30.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

xml2rfc is a Python package used for generating RFC documents in various formats, including PDF. It allows users to create structured documents using XML syntax. The package is widely utilized in technical documentation and standards development. However, it has been found to have a vulnerability that can be exploited to read arbitrary files from the filesystem, posing a significant security risk.

Vulnerability Detail

The vulnerability arises when generating PDF files from XML input. An attacker can inject a malicious link element into the XML, which can lead to unauthorized access to files on the server's filesystem. This could potentially expose sensitive information and compromise the integrity of the system. The vulnerability is classified with a CVSS score of 8.7, indicating a high severity level.

How To Fix

Latest published version: 3.34.1 as of 23 Oct 2026

pip install --upgrade "xml2rfc==3.34.1"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.30.1

This is the first release that contains the fix.

pip install --upgrade "xml2rfc==3.30.1"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, validate any untrusted input containing link elements with rel="attachment" before processing. This can help prevent the execution of malicious links that could lead to file reading vulnerabilities.

Conclusion

The xml2rfc package has a critical vulnerability that allows arbitrary file reading through malicious XML input. Users are strongly advised to update to the latest version to protect their systems. Implementing the suggested workaround can provide temporary relief until the update is applied.

See every vulnerability recorded for xml2rfc →

Share this vulnerability

FAQ

The vulnerability allows an attacker to read arbitrary files from the filesystem by injecting malicious link elements into the XML used for generating PDFs.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

If immediate updates are not possible, implement the recommended workaround by validating untrusted input with link elements before processing.

The CVSS score of this vulnerability is 8.7, indicating a high severity level.

This vulnerability was reported by Mohamed Ouad from Doyensec.

Related vulnerabilities

Recent vulnerabilities recorded for xml2rfc.

How To Fix

Latest published version: 3.34.1 as of 23 Oct 2026

pip install --upgrade "xml2rfc==3.34.1"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.30.1

This is the first release that contains the fix.

pip install --upgrade "xml2rfc==3.30.1"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback