Skip to main content
Vulnerability Database/CVE-2026-109603

CVE-2026-109603: Frappe Framework SSRF Vulnerability

CVE-2026-109603 is a server-side request forgery vulnerability in Frappe Framework that allows authenticated attackers to access internal resources and embed local files through PDF generation. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-109603 Overview

CVE-2026-109603 affects Frappe Framework versions 15.x before 15.107.3 and 16.x before 16.17.0. The framework bundles a vulnerable pdfkit library (tracked as CVE-2025-26240) for PDF generation. Authenticated attackers can supply crafted content to the PDF renderer to trigger Server-Side Request Forgery (SSRF) and Local File Inclusion (LFI). Successful exploitation allows the server to fetch internal network resources or embed local server files inside generated PDFs. The weakness is categorized under CWE-918: Server-Side Request Forgery.

Critical Impact

Authenticated users can coerce the Frappe server into reading internal URLs or embedding local filesystem contents into PDF output, exposing configuration, credentials, or metadata services.

Affected Products

  • Frappe Framework 15.x prior to 15.107.3
  • Frappe Framework 16.x prior to 16.17.0
  • Downstream applications using Frappe PDF generation (for example, ERPNext deployments)

Discovery Timeline

  • 2026-10-12 - CVE-2026-109603 published to NVD
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2026-109603

Vulnerability Analysis

Frappe Framework uses the pdfkit Python wrapper around wkhtmltopdf to render HTML templates into PDF documents. The underlying pdfkit behavior permits HTML content to reference remote URLs and local file paths during rendering. When an authenticated Frappe user controls any portion of the HTML passed to the PDF pipeline, that user can inject tags that cause the server to issue outbound HTTP requests or read local files.

The SSRF primitive allows requests to internal services such as metadata endpoints on cloud instances, internal admin APIs, or loopback-bound databases. The LFI primitive allows embedding of readable server files, including configuration files or logs, into the resulting PDF that is returned to the attacker. Both primitives inherit the privileges of the Frappe worker process.

Root Cause

The root cause is the continued use of a pdfkit version affected by CVE-2025-26240, combined with insufficient sanitization of user-supplied HTML before it reaches the PDF rendering layer. The renderer resolves file:// and http:// schemes within the rendered document without restricting target origins or filesystem paths.

Attack Vector

Exploitation requires an authenticated session with permission to generate PDFs or submit content that is later rendered to PDF (for example, print format templates, letterheads, or custom reports). The attacker injects HTML elements that reference internal URLs or local files. The server fetches those resources during PDF generation and incorporates them into the output or triggers an outbound request to the attacker-controlled target.

No verified public exploit code is published for this specific advisory. See the Frappe GitHub Security Advisory GHSA-pj59-9hv9-rmrv and the VulnCheck Advisory on SSRF/LFI in Frappe for technical references.

Detection Methods for CVE-2026-109603

Indicators of Compromise

  • Outbound HTTP requests from Frappe worker processes to internal RFC1918 addresses or cloud metadata endpoints such as 169.254.169.254.
  • PDF generation jobs referencing file:// URIs or unusual local paths like /etc/passwd, /proc/self/environ, or Frappe site_config.json.
  • Unexpected spikes in PDF rendering latency or job volume from a single authenticated user.

Detection Strategies

  • Inspect Frappe application logs and wkhtmltopdf subprocess invocations for suspicious URL or file path arguments.
  • Monitor egress network traffic from application servers for connections to internal management interfaces that should not originate from the Frappe tier.
  • Audit print format, letterhead, and custom report templates for inline HTML containing <img>, <link>, or <iframe> tags pointing to internal or file:// resources.

Monitoring Recommendations

  • Enable application-level logging of all PDF generation requests, including the requesting user and template identifier.
  • Forward web server, application, and process execution telemetry to a centralized analytics platform for correlation across PDF rendering events and outbound network connections.
  • Alert on any wkhtmltopdf process that opens sockets to loopback, link-local, or private address ranges.

How to Mitigate CVE-2026-109603

Immediate Actions Required

  • Upgrade Frappe Framework to 15.107.3 or 16.17.0 or later without delay.
  • Review all users with permission to create or modify print formats, letterheads, and custom reports, and revoke unnecessary access.
  • Audit recently generated PDFs for suspicious embedded content or references to internal URIs.

Patch Information

Frappe addressed this issue by updating the bundled pdfkit dependency and hardening HTML processing before PDF rendering. Fixed releases are Frappe Framework 15.107.3 for the 15.x line and 16.17.0 for the 16.x line. Refer to the Frappe GitHub Security Advisory GHSA-pj59-9hv9-rmrv for upgrade guidance.

Workarounds

  • Restrict outbound network access from Frappe application servers using host firewalls or egress proxies that block cloud metadata endpoints and internal management ranges.
  • Run wkhtmltopdf with --disable-local-file-access where configuration permits, to block file:// scheme resolution during rendering.
  • Limit PDF generation and template authoring privileges to a minimal set of trusted roles until patching is complete.
bash
# Example egress restriction using iptables to block cloud metadata access
# from the Frappe application host
iptables -A OUTPUT -d 169.254.169.254 -j DROP
iptables -A OUTPUT -d 127.0.0.0/8 ! -o lo -j DROP

# Example wkhtmltopdf hardening flag (verify compatibility with your templates)
wkhtmltopdf --disable-local-file-access input.html output.pdf

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.