All vulnerabilities

PyPI

CVE-2026-114609

fpdf2 implicitly loads external URLs and local image paths when rendering attacker-controlled content

Severity
Medium 5.8
Published
27 Oct 2026
Last changed
27 Oct 2026
Added to UpHeron
23 Nov 2026
Fixed in
2.8.8
Exploit chance
0.3% in the next 30 daysHigher than 16% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Server-side request forgery (CWE-918)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
Also known as
GHSA-rw7v-4hrq-x6r9
Sources
OSV.dev and GitHub

Description

fpdf2 implicitly dereferences image resource references supplied to rendering APIs. If an application passes untrusted HTML, SVG, template data, or image paths into those APIs, fpdf2 may issue outbound HTTP(S) requests or attempt to open local filesystem paths.

This behavior is relevant in applications that render untrusted or user-provided input without sanitizing or restricting embedded resource references.

In affected versions, fpdf2 uses a shared internal image-loading mechanism for multiple features. This loader:

  • fetches http:// and https:// URLs over the network
  • opens other string values as local filesystem paths

During document processing, resource references embedded in input content are automatically dereferenced using this mechanism.

This behavior is reachable through:

  • FPDF.image()
  • FPDF.write_html() via HTML
  • FPDF.image() when rendering SVG files containing or xlink:href="...">`
  • template image elements that forward values into FPDF.image()
From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Workarounds

Applications can mitigate this by:

  • not rendering untrusted HTML, SVG, or template content
  • rejecting user-controlled src / href / image-path values
  • mapping resources through an application-defined allowlist
  • converting user-supplied images to trusted in-memory objects before passing them to fpdf2
Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
fpdf2PyPI · osv:PyPI:fpdf2
  • Every version before 2.8.8

About fpdf2

Weekly downloads (PyPI)
6,861,057PyPI Stats, 23 Nov 2026

Vulnerabilities in fpdf2

In our list
2
Published in the last 12 months
2
Critical, last 12 months
0
High, last 12 months
0
Known exploited
0
Search the list for fpdf2

References