PyPI: fpdf2

SFTY-20220307-27547

Safety legacy ID: pyup.io-45581

Fpdf2 2.5.1 deprecates its font caching mechanism that used the 'pickle' module for security reasons. https://github.com/PyFPDF/fpdf2/issues/345

Created at: Nov 5, 2025Updated at: Nov 5, 2025

Overview

Fpdf2 2.5.1 deprecates its font caching mechanism that used the 'pickle' module for security reasons. https://github.com/PyFPDF/fpdf2/issues/345

Advisory

Fpdf2 2.5.1 deprecates its font caching mechanism that used the 'pickle' module for security reasons. https://github.com/PyFPDF/fpdf2/issues/345

Affected Package

Affecting fpdf2 package, versions<2.5.1

Also affects

---

How to Fix

Upgradefpdf2to2.5.1or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more