CVE Wiki Pixee · CVE intelligence
← All CVEs

CVE-2026-31017

Critical · CVSS 9.1

ERPNext / Frappe Framework — Server-Side Request Forgery (SSRF) via HTML-to-PDF rendering

CVSS
9.1
nvd
EPSS
KEV
No
Class
oss containerizable
CWE-918

Description

A Server-Side Request Forgery (SSRF) vulnerability exists in the Print Format functionality of ERPNext v16.0.1 and Frappe Framework v16.1.1, where user-supplied HTML is insufficiently sanitized before being rendered into PDF. When generating PDFs from user-controlled HTML content, the application allows the inclusion of HTML elements such as <iframe> that reference external resources. The PDF rendering engine automatically fetches these resources on the server side. An attacker can abuse this behavior to force the server to make arbitrary HTTP requests to internal services, including cloud metadata endpoints, potentially leading to sensitive information disclosure.

Search profile — drives PoC discovery

Symbols Print FormatiframePDF renderingHTML sanitizationcloud metadata endpointprint_formatweasyprintpdfkitfrappe.utils.pdfget_pdfdownload_pdf
Keywords CVE-2026-31017ERPNext SSRFFrappe Framework SSRFPrint Format SSRFHTML to PDF SSRFERPNext v16.0.1Frappe v16.1.1iframe SSRF PDFERPNext metadata disclosureFrappe print format vulnerability
Versions: ERPNext v16.0.1, Frappe Framework v16.1.1

References

Status: enriched · ingested 2026-07-05T06:00:39.000Z · profiled 2026-07-06T06:30:39.000Z