CVE-2026-31017: SSRF
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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-31017?
CVE-2026-31017 is categorized as a moderate severity Server-Side Request Forgery (SSRF) vulnerability.
How do I fix CVE-2026-31017?
To mitigate CVE-2026-31017, users should update to ERPNext version 16.0.2 or later, and Frappe Framework version 16.1.2 or later.
What are the potential risks associated with CVE-2026-31017?
The risks of CVE-2026-31017 include unauthorized access to internal systems through crafted PDF generation requests.
Which versions are affected by CVE-2026-31017?
CVE-2026-31017 affects ERPNext version 16.0.1 and Frappe Framework version 16.1.1.
What is the nature of the vulnerability in CVE-2026-31017?
CVE-2026-31017 is an SSRF vulnerability caused by insufficient sanitization of user-supplied HTML in PDF generation.