CVE-2026-31017

SSRF Vulnerability in ERPNext PDF Rendering Enables Internal Resource Discovery and Data Exposure

Published Apr 8, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title SSRF Vulnerability in ERPNext PDF Rendering Enables Internal Resource Discovery and Data Exposure
Type Values Removed Values Added
First Time appeared Frappe frappe
CPEs cpe:2.3:a:frappe:erpnext:16.0.1:*:*:*:*:*:*:*
cpe:2.3:a:frappe:frappe:16.1.1:*:*:*:*:*:*:*
Vendors & Products Frappe frappe
Type Values Removed Values Added
Title SSRF in ERPNext PDF Rendering Allows Server‑Side Requests
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

Type Values Removed Values Added
First Time appeared Frappe
Frappe erpnext
Frappe framework
Vendors & Products Frappe
Frappe erpnext
Frappe framework
Type Values Removed Values Added
Title SSRF in ERPNext PDF Rendering Allows Server‑Side Requests
Weaknesses CWE-918
Type Values Removed Values Added
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.
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Jul 5, 2026, 1:32 AM
Reserved
Mar 9, 2026, 12:00 AM
Status
Modified
Published
Apr 8, 2026, 5:21 PM
Modified
Jul 25, 2026, 10:10 AM